Module: ActiveAdminAssociations::FormConfigDSL
- Defined in:
- lib/active_admin_associations/form_config_dsl.rb
Instance Method Summary collapse
- #active_association_form(&block) ⇒ Object
- #form_associations(&block) ⇒ Object
- #form_columns(*column_names) ⇒ Object
Instance Method Details
#active_association_form(&block) ⇒ Object
3 4 5 |
# File 'lib/active_admin_associations/form_config_dsl.rb', line 3 def active_association_form(&block) config.active_association_form = block end |
#form_associations(&block) ⇒ Object
11 12 13 |
# File 'lib/active_admin_associations/form_config_dsl.rb', line 11 def form_associations(&block) config.form_associations = AssociationConfig.new(&block) end |
#form_columns(*column_names) ⇒ Object
7 8 9 |
# File 'lib/active_admin_associations/form_config_dsl.rb', line 7 def form_columns(*column_names) config.form_columns = column_names.flatten end |