Method: Rql::Scope::RqlScope#initialize

Defined in:
lib/rql/scope/rql_scope.rb

#initialize(scope) ⇒ RqlScope

Returns a new instance of RqlScope.

Parameters:

  • scope (ActiveRecord::Relation)

    the underlying scope to wrap



8
9
10
11
12
# File 'lib/rql/scope/rql_scope.rb', line 8

def initialize(scope)
  @block_methods = BlockMethodGroup.new(scope)
  @param_methods = ParamMethodGroup.new(scope)
  @scope = scope
end