Add extended about page stub

Tento commit je obsažen v:
Eugen Rochko
2017-01-13 03:24:41 +01:00
rodič 2939e9898b
revize e25170f960
10 změnil soubory, kde provedl 44 přidání a 15 odebrání

Zobrazit soubor

@ -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

Zobrazit soubor

@ -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