Class: Formstrap::LabelView
- Defined in:
- app/models/formstrap/label_view.rb
Instance Method Summary collapse
Methods inherited from ViewModel
#attributes, #initialize, #to_hash
Constructor Details
This class inherits a constructor from ViewModel
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ViewModel
Instance Method Details
#form ⇒ Object
3 4 5 |
# File 'app/models/formstrap/label_view.rb', line 3 def form @form.object_id end |
#options ⇒ Object
7 8 9 10 11 |
# File 'app/models/formstrap/label_view.rb', line 7 def keys = attributes - %i[attribute form text] = to_h.slice(*keys) .deep_merge() end |