diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-04-12 15:56:07 -0700 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-04-12 15:56:07 -0700 |
commit | 6de1f350ce117129e46353f12f90a138ca3d3ead (patch) | |
tree | 4d25ac9d653ea76a10f682cd0e8e3e7270a569a2 /lib/active_relation/relations/take.rb | |
parent | a0dc6900330b7ec78785a80fe8b72595384635a0 (diff) | |
download | rails-6de1f350ce117129e46353f12f90a138ca3d3ead.tar.gz rails-6de1f350ce117129e46353f12f90a138ca3d3ead.tar.bz2 rails-6de1f350ce117129e46353f12f90a138ca3d3ead.zip |
- string passthrough for joins
- blank checks
Diffstat (limited to 'lib/active_relation/relations/take.rb')
-rw-r--r-- | lib/active_relation/relations/take.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/active_relation/relations/take.rb b/lib/active_relation/relations/take.rb index efeff11bf2..02d507753d 100644 --- a/lib/active_relation/relations/take.rb +++ b/lib/active_relation/relations/take.rb @@ -7,8 +7,9 @@ module ActiveRelation end def ==(other) - relation == other.relation and - taken == other.taken + self.class == other.class and + relation == other.relation and + taken == other.taken end def descend(&block) |