diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-03-16 17:27:40 -0700 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-03-16 17:27:40 -0700 |
commit | 7bd0d634867ccbdf4537ba3d62b865b1cb7beebf (patch) | |
tree | f469465c385a99722b2263cae5f68a1a961a3c76 /lib/active_relation/primitives | |
parent | aa5c9a19826c84bbb9c9f75f8d1a4b04b874780c (diff) | |
download | rails-7bd0d634867ccbdf4537ba3d62b865b1cb7beebf.tar.gz rails-7bd0d634867ccbdf4537ba3d62b865b1cb7beebf.tar.bz2 rails-7bd0d634867ccbdf4537ba3d62b865b1cb7beebf.zip |
allowing string passthrough for order clauses
Diffstat (limited to 'lib/active_relation/primitives')
-rw-r--r-- | lib/active_relation/primitives/attribute.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/active_relation/primitives/attribute.rb b/lib/active_relation/primitives/attribute.rb index ddf5ef5e07..d78e940ffc 100644 --- a/lib/active_relation/primitives/attribute.rb +++ b/lib/active_relation/primitives/attribute.rb @@ -63,31 +63,31 @@ module ActiveRelation module Predications def eq(other) - Equality.new(self, other) + Equality.new(self, other.bind(relation)) end def lt(other) - LessThan.new(self, other) + LessThan.new(self, other.bind(relation)) end def lteq(other) - LessThanOrEqualTo.new(self, other) + LessThanOrEqualTo.new(self, other.bind(relation)) end def gt(other) - GreaterThan.new(self, other) + GreaterThan.new(self, other.bind(relation)) end def gteq(other) - GreaterThanOrEqualTo.new(self, other) + GreaterThanOrEqualTo.new(self, other.bind(relation)) end def matches(regexp) - Match.new(self, regexp) + Match.new(self, regexp.bind(relation)) end def in(array) - In.new(self, array) + In.new(self, array.bind(relation)) end end include Predications |