Class: Cuprum::Rails::QueryBuilder
- Inherits:
-
Collections::QueryBuilder
- Object
- Collections::QueryBuilder
- Cuprum::Rails::QueryBuilder
- Defined in:
- lib/cuprum/rails/query_builder.rb
Overview
Applies filter operations for a Rails collection query.
Instance Method Summary collapse
-
#initialize(base_query) ⇒ QueryBuilder
constructor
A new instance of QueryBuilder.
Constructor Details
#initialize(base_query) ⇒ QueryBuilder
Returns a new instance of QueryBuilder.
11 12 13 14 15 |
# File 'lib/cuprum/rails/query_builder.rb', line 11 def initialize(base_query) super @native_query = base_query.send(:native_query) end |