Class: Zadok::Filters::Ransack::TextfieldFilter

Inherits:
Base
  • Object
show all
Defined in:
lib/zadok/filters/ransack/textfield_filter.rb

Instance Attribute Summary

Attributes inherited from Base

#params

Instance Method Summary collapse

Methods inherited from Base

#active_in?, #add_to_params, #i18n_name, #index, #initialize, #modify_columns, #options, #param, #remove_from_params, #text, #title

Constructor Details

This class inherits a constructor from Zadok::Filters::Ransack::Base

Instance Method Details

#describe(current_params) ⇒ Object



7
8
9
# File 'lib/zadok/filters/ransack/textfield_filter.rb', line 7

def describe(current_params)
  current_params[param]
end

#typeObject



11
12
13
# File 'lib/zadok/filters/ransack/textfield_filter.rb', line 11

def type
  :textfield
end