Module: Virtus::Extras::FormObject
- Defined in:
- lib/Virtus/extras/form_object.rb
Instance Method Summary collapse
Instance Method Details
#form_attributes(*args) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/Virtus/extras/form_object.rb', line 14 def form_attributes(*args) = args. model = [:model] attributes = args attributes.each do |attribute_key| attribute attribute_key, model, optional_args() end end |