Module: FormObject::Integrations::Base::InstanceMethods
- Defined in:
- lib/form_object/integrations/base.rb
Instance Method Summary collapse
-
#form(name) ⇒ Object
Get form by given name.
- #form_object_attributes ⇒ Object
-
#forms ⇒ Object
Forms hash for current model.
Instance Method Details
#form(name) ⇒ Object
Get form by given name
90 91 92 |
# File 'lib/form_object/integrations/base.rb', line 90 def form( name ) forms[name] end |
#form_object_attributes ⇒ Object
94 95 96 |
# File 'lib/form_object/integrations/base.rb', line 94 def form_object_attributes Hash.new end |
#forms ⇒ Object
Forms hash for current model
85 86 87 |
# File 'lib/form_object/integrations/base.rb', line 85 def forms @forms ||= FormObject::Base::Collection.new(self) end |