Module: ActiveAdmin::ResourceController::Form::ClassMethods
- Defined in:
- lib/active_admin/resource_controller/form.rb
Instance Method Summary collapse
- #default_form_config ⇒ Object
- #form_config ⇒ Object
- #form_config=(config) ⇒ Object
- #reset_form_config! ⇒ Object
Instance Method Details
#default_form_config ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/active_admin/resource_controller/form.rb', line 24 def default_form_config config = {} config[:block] = lambda do |f| f.inputs f. end config end |
#form_config ⇒ Object
16 17 18 |
# File 'lib/active_admin/resource_controller/form.rb', line 16 def form_config @form_config ||= default_form_config end |
#form_config=(config) ⇒ Object
12 13 14 |
# File 'lib/active_admin/resource_controller/form.rb', line 12 def form_config=(config) @form_config = config end |
#reset_form_config! ⇒ Object
20 21 22 |
# File 'lib/active_admin/resource_controller/form.rb', line 20 def reset_form_config! @form_config = nil end |