Module: Id::Form
- Defined in:
- lib/id/form.rb
Instance Method Summary collapse
Instance Method Details
#active_model ⇒ Object
3 4 5 |
# File 'lib/id/form.rb', line 3 def active_model @active_model ||= form_class.new(self, _data) end |
#as_form ⇒ Object
7 8 9 10 |
# File 'lib/id/form.rb', line 7 def as_form warn '[DEPRECATION] calling `as_form` is deprecated, please use `to_model` instead' to_model end |