Class: JsonApiServer::SqlIn
- Inherits:
-
FilterBuilder
- Object
- FilterBuilder
- JsonApiServer::SqlIn
- Defined in:
- lib/json_api_server/filter_builders.rb
Overview
Query IN builder, .i.e., where(‘id IN (?)’, [1,2,3]).
Instance Attribute Summary
Attributes inherited from FilterBuilder
#attr, #column_name, #config, #operator, #value
Instance Method Summary collapse
Methods inherited from FilterBuilder
Constructor Details
This class inherits a constructor from JsonApiServer::FilterBuilder
Instance Method Details
#to_query(model) ⇒ Object
81 82 83 |
# File 'lib/json_api_server/filter_builders.rb', line 81 def to_query(model) model.where("#{full_column_name(model)} IN (?)", value) end |