Module: FormObject::Integrations::Base::InstanceMethods

Defined in:
lib/form_object/integrations/base.rb

Instance Method Summary collapse

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_attributesObject



94
95
96
# File 'lib/form_object/integrations/base.rb', line 94

def form_object_attributes
  Hash.new
end

#formsObject

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