diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-03-16 16:17:13 -0700 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-03-16 16:17:13 -0700 |
commit | 07f7f752fecb56316456f144c121e471fd0d0847 (patch) | |
tree | efe4da65736e808ecae0c7850e4d1fe32470c037 /lib/active_relation | |
parent | af3d7c5193eee90ad17b1ba8aaf5d76a2874c0a5 (diff) | |
download | rails-07f7f752fecb56316456f144c121e471fd0d0847.tar.gz rails-07f7f752fecb56316456f144c121e471fd0d0847.tar.bz2 rails-07f7f752fecb56316456f144c121e471fd0d0847.zip |
renamed operators
- equals / eq
- greater_than / gt
- etc.
Diffstat (limited to 'lib/active_relation')
-rw-r--r-- | lib/active_relation/primitives/attribute.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/active_relation/primitives/attribute.rb b/lib/active_relation/primitives/attribute.rb index fc857347fc..0ddbbb5cd4 100644 --- a/lib/active_relation/primitives/attribute.rb +++ b/lib/active_relation/primitives/attribute.rb @@ -62,23 +62,23 @@ module ActiveRelation include Congruence module Predications - def equals(other) + def eq(other) Equality.new(self, other) end - def less_than(other) + def lt(other) LessThan.new(self, other) end - def less_than_or_equal_to(other) + def lteq(other) LessThanOrEqualTo.new(self, other) end - def greater_than(other) + def gt(other) GreaterThan.new(self, other) end - def greater_than_or_equal_to(other) + def gteq(other) GreaterThanOrEqualTo.new(self, other) end |