Module: FormObject::Dsl::ClassMethods
- Defined in:
- lib/form_object/dsl/class_methods.rb
Instance Method Summary collapse
Instance Method Details
#form_name ⇒ Object
9 10 11 |
# File 'lib/form_object/dsl/class_methods.rb', line 9 def form_name FormObject::Utils::StringConverter.form_name(self.name).to_sym end |
#map_model(model_class, options = {}) ⇒ Object
5 6 7 |
# File 'lib/form_object/dsl/class_methods.rb', line 5 def map_model( model_class, = {} ) store.map_for_model( self, model_class, ) end |
#model ⇒ Object
13 14 15 |
# File 'lib/form_object/dsl/class_methods.rb', line 13 def model store.find(form: self).first.try(:model) end |