Class: Headmin::Filter::OptionsView
- Inherits:
-
FilterView
- Object
- ViewModel
- FilterView
- Headmin::Filter::OptionsView
- Defined in:
- app/models/headmin/filter/options_view.rb
Instance Method Summary collapse
Methods inherited from FilterView
#association_model, #attribute, #label, #reflection
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
#base_options ⇒ Object
4 5 6 7 8 |
# File 'app/models/headmin/filter/options_view.rb', line 4 def keys = %i[name label form] = to_h.slice(*keys) .merge() end |
#collection ⇒ Object
16 17 18 |
# File 'app/models/headmin/filter/options_view.rb', line 16 def collection @collection || [] end |
#input_options ⇒ Object
10 11 12 13 14 |
# File 'app/models/headmin/filter/options_view.rb', line 10 def keys = %i[form] = to_h.slice(*keys) .merge() end |