Module: Adminterface::Extensions::DynamicSettingsNode
- Defined in:
- lib/adminterface/extensions/dynamic_settings_node.rb
Instance Method Summary collapse
Instance Method Details
#add_writer(name, type) ⇒ Object
4 5 6 7 8 |
# File 'lib/adminterface/extensions/dynamic_settings_node.rb', line 4 def add_writer(name, type) define_singleton_method("#{name}=") do |value| send("#{name}_setting=", ActiveAdmin::DynamicSetting.build(merge_defaults(value, name), type)) end end |