Module: ActiveAdmin::Settings::Inheritance::ClassMethods

Defined in:
lib/active_admin/helpers/settings.rb

Instance Method Summary collapse

Instance Method Details

#deprecated_inheritable_setting(name, default) ⇒ Object


106
107
108
109
# File 'lib/active_admin/helpers/settings.rb', line 106

def deprecated_inheritable_setting(name, default)
  deprecated_setting name, default
  @setting_heirs.each{ |c| c.deprecated_setting name, default }
end

#inheritable_setting(name, default) ⇒ Object


101
102
103
104
# File 'lib/active_admin/helpers/settings.rb', line 101

def inheritable_setting(name, default)
  setting name, default
  @setting_heirs.each{ |c| c.setting name, default }
end

#settings_inherited_by(heir) ⇒ Object


96
97
98
99
# File 'lib/active_admin/helpers/settings.rb', line 96

def settings_inherited_by(heir)
  (@setting_heirs ||= []) << heir
  heir.send :include, ActiveAdmin::Settings
end