Class: Id::FormBuilder

Inherits:
ActionView::Helpers::FormBuilder
  • Object
show all
Defined in:
lib/id/form.rb

Instance Method Summary collapse

Constructor Details

#initialize(object_name, object, template, options) ⇒ FormBuilder

Returns a new instance of FormBuilder.



44
45
46
47
# File 'lib/id/form.rb', line 44

def initialize(object_name, object, template, options)
  object = object.is_a?(Id::Model) ? object.to_model : object
  super object_name, object, template, options
end