Class: Queryko::Filters::Max
Instance Attribute Summary
Attributes inherited from Base
#as, #column_name, #feature, #field, #query_object, #table_name, #table_name_override
Instance Method Summary collapse
Methods inherited from Base
#call, #initialize, #param_key_format
Constructor Details
This class inherits a constructor from Queryko::Filters::Base
Instance Method Details
#perform(collection, token, query_object = nil) ⇒ Object
4 5 6 |
# File 'lib/queryko/filters/max.rb', line 4 def perform(collection, token, query_object = nil) collection.where("#{table_name}.#{column_name} <= ?", token) end |