Class: Headmin::Filter::TextView

Inherits:
FilterView show all
Defined in:
app/models/headmin/filter/text_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_optionsObject



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

def base_options
  keys = %i[name label form]
  options = to_h.slice(*keys)
  default_base_options.merge(options)
end

#input_optionsObject



10
11
12
13
14
# File 'app/models/headmin/filter/text_view.rb', line 10

def input_options
  keys = %i[form]
  options = to_h.slice(*keys)
  default_input_options.merge(options)
end