Add extended about page stub
This commit is contained in:
parent
2939e9898b
commit
e25170f960
10 changed files with 44 additions and 15 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue