Method: Rql::Scope::BlockMethods#where

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

#where { ... } ⇒ Rql::Scope::RqlScope

Filters scope based on specified conditions

Yields:

  • RQL block defining the conditions to filter on

Returns:



8
9
10
# File 'lib/rql/scope/block_methods.rb', line 8

def where(&block)
  scope.where(scope.eval_rql(&block).arel)
end