Class: Headmin::Filter::SearchView

Inherits:
ViewModel
  • Object
show all
Defined in:
app/models/headmin/filter/search_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

#input_optionsObject



4
5
6
7
8
9
# File 'app/models/headmin/filter/search_view.rb', line 4

def input_options
  keys = attributes - %i[params]
  options = to_h.slice(*keys)
  options = default_input_options.merge(options)
  options.merge(label: false)
end