Module: ArelOperators
- Defined in:
- lib/arel_operators.rb,
lib/arel_operators/finder.rb,
lib/arel_operators/operators.rb,
lib/arel_operators/finder/comparators.rb
Defined Under Namespace
Modules: Operators
Classes: Finder, RelationMismatch
Instance Method Summary
collapse
Instance Method Details
#scoped(*args) ⇒ Object
23
24
25
|
# File 'lib/arel_operators.rb', line 23
def scoped(*args)
include_operators_on super(*args)
end
|
#where(*args, &b) ⇒ Object
4
5
6
7
8
9
10
11
12
|
# File 'lib/arel_operators.rb', line 4
def where(*args, &b)
if b
arel = arel_from_block &b
result = where(arel)
return result if args.empty?
return result.where(*args)
end
include_operators_on super
end
|