Class: ActiveFilter::IntegerField
- Inherits:
-
Field
- Object
- Field
- ActiveFilter::IntegerField
show all
- Defined in:
- lib/active_filter/field.rb
Instance Attribute Summary
Attributes inherited from Field
#name
Instance Method Summary
collapse
Methods inherited from Field
#filter, #initialize
Instance Method Details
#convert_value(value) ⇒ Object
53
54
55
|
# File 'lib/active_filter/field.rb', line 53
def convert_value(value)
value.to_i
end
|
#lookup_type ⇒ Object
49
50
51
|
# File 'lib/active_filter/field.rb', line 49
def lookup_type
["exact", "gt", "lt", "gte", "lte"]
end
|