diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-01-31 05:47:41 -0800 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-01-31 13:51:09 +0000 |
commit | 85c724d59e46953c52fb457411597fbab90f3a4a (patch) | |
tree | 6eb192cd6a604f3e34274fe6a607354c2b71f60e /activerecord/lib/active_record | |
parent | 7beb5a71f39f08c2b41a8f9b39f64e126d72bd79 (diff) | |
download | rails-85c724d59e46953c52fb457411597fbab90f3a4a.tar.gz rails-85c724d59e46953c52fb457411597fbab90f3a4a.tar.bz2 rails-85c724d59e46953c52fb457411597fbab90f3a4a.zip |
Merge pull request #4783 from gregolsen/ids_reader_fix
ids_reader method fixed, test added to has_many association (for PostgreSQL)
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/associations/collection_association.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/collection_association.rb b/activerecord/lib/active_record/associations/collection_association.rb index fe9f30bd2a..0f32ce7bd4 100644 --- a/activerecord/lib/active_record/associations/collection_association.rb +++ b/activerecord/lib/active_record/associations/collection_association.rb @@ -60,7 +60,7 @@ module ActiveRecord end end - relation.uniq.pluck(column) + relation.pluck(column) end end |