0
0
Fork 0

Add extended about page stub

This commit is contained in:
Eugen Rochko 2017-01-13 03:24:41 +01:00
parent 2939e9898b
commit e25170f960
10 changed files with 44 additions and 15 deletions

View file

@ -1,9 +1,11 @@
# frozen_string_literal: true
module Settings
module Extend
extend ActiveSupport::Concern
extend ActiveSupport::Concern
def settings
ScopedSettings.for_thing(self)
end
end
end
end

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Settings
class ScopedSettings < ::Setting
def self.for_thing(object)
@ -9,4 +11,4 @@ module Settings
unscoped.where(thing_type: @object.class.base_class.to_s, thing_id: @object.id)
end
end
end
end