Class: Cuprum::Rails::QueryBuilder

Inherits:
Collections::QueryBuilder
  • Object
show all
Defined in:
lib/cuprum/rails/query_builder.rb

Overview

Applies filter operations for a Rails collection query.

Instance Method Summary collapse

Constructor Details

#initialize(base_query) ⇒ QueryBuilder

Returns a new instance of QueryBuilder.

Parameters:



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