aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/take.rb
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-05-18 16:47:55 -0700
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-05-18 16:47:55 -0700
commit7feff4e7b52fbef356426d22257af161704315ad (patch)
treedb907c2bc27dc406d08513d40f8e75cd810a91f9 /lib/arel/relations/take.rb
parent32ad530b825f4cdac51e579306548ca695471039 (diff)
downloadrails-7feff4e7b52fbef356426d22257af161704315ad.tar.gz
rails-7feff4e7b52fbef356426d22257af161704315ad.tar.bz2
rails-7feff4e7b52fbef356426d22257af161704315ad.zip
performance enhancements
Diffstat (limited to 'lib/arel/relations/take.rb')
-rw-r--r--lib/arel/relations/take.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/arel/relations/take.rb b/lib/arel/relations/take.rb
index 80aa62a878..0a49891aee 100644
--- a/lib/arel/relations/take.rb
+++ b/lib/arel/relations/take.rb
@@ -7,9 +7,9 @@ module Arel
end
def ==(other)
- Take == other.class and
- relation == other.relation and
- taken == other.taken
+ Take === other and
+ relation == other.relation and
+ taken == other.taken
end
end
end \ No newline at end of file