Class: Queryko::Filters::Batch
- Defined in:
- lib/queryko/filters/batch.rb
Instance Attribute Summary
Attributes inherited from Base
#as, #column_name, #feature, #field, #query_object, #table_name
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Queryko::Filters::Base
Instance Method Details
#param_key_format ⇒ Object
8 9 10 |
# File 'lib/queryko/filters/batch.rb', line 8 def param_key_format "by_#{column_name.pluralize}" end |
#perform(collection, token, query_object = nil) ⇒ Object
4 5 6 |
# File 'lib/queryko/filters/batch.rb', line 4 def perform(collection, token, query_object = nil) collection.where("#{table_name}.#{column_name} IN (?)", token.split(',')) end |