diff options
author | Paul <paul@odysseus.(none)> | 2008-11-26 15:21:12 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-11-26 15:25:39 +0100 |
commit | 9a4d557713acb0fc8e80f61af18094034aca029a (patch) | |
tree | 4fb39be87214bdb8fea3e263cae1484823562b97 /activerecord/lib/active_record | |
parent | 17940a82e8cb0ed278e1552b943dd033763978a1 (diff) | |
download | rails-9a4d557713acb0fc8e80f61af18094034aca029a.tar.gz rails-9a4d557713acb0fc8e80f61af18094034aca029a.tar.bz2 rails-9a4d557713acb0fc8e80f61af18094034aca029a.zip |
Ensure hash conditions on referenced tables are considered when eager loading with limit/offset. [#1404 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activerecord/lib/active_record')
-rwxr-xr-x | activerecord/lib/active_record/associations.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 63e28a43ab..0546b76c63 100755 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -1733,6 +1733,7 @@ module ActiveRecord case cond when nil then all when Array then all << cond.first + when Hash then all << cond.keys else all << cond end end |