Module: AdminAssistant::Column::SearchViewMethods

Instance Method Summary collapse

Instance Method Details

#set_instance_variables_from_options(admin_assistant, opts) ⇒ Object



181
182
183
184
185
186
187
188
189
# File 'lib/admin_assistant/column.rb', line 181

def set_instance_variables_from_options(admin_assistant, opts)
  setting = admin_assistant.search_settings[name.to_sym]
  unless setting.comparators == false
    @comparators = :all
  end
  @search = opts[:search]
  @blank_checkbox = setting.blank_checkbox
  @compare_to_range = setting.compare_to_range
end