Class: Queryko::Filters::Before

Inherits:
Base
  • Object
show all
Defined in:
lib/queryko/filters/before.rb

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/before.rb', line 4

def perform(collection, token, query_object = nil)
  collection.where("#{table_name}.#{column_name} < ?", token)
end