aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-01-14 21:14:21 +0000
committerJon Leighton <j@jonathanleighton.com>2012-01-16 21:17:18 +0000
commita84a20e1cd2133932dd1bd33f862aa2605cc821e (patch)
tree9929ea49d9b6f06827cb10e3477e4b7c159f96d5 /activerecord/lib/active_record/relation
parentf6cc6651f2a32af42345641c3d17fc26ddb96b52 (diff)
downloadrails-a84a20e1cd2133932dd1bd33f862aa2605cc821e.tar.gz
rails-a84a20e1cd2133932dd1bd33f862aa2605cc821e.tar.bz2
rails-a84a20e1cd2133932dd1bd33f862aa2605cc821e.zip
store references as a string
Diffstat (limited to 'activerecord/lib/active_record/relation')
-rw-r--r--activerecord/lib/active_record/relation/query_methods.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb
index ef3545c76a..75369513e3 100644
--- a/activerecord/lib/active_record/relation/query_methods.rb
+++ b/activerecord/lib/active_record/relation/query_methods.rb
@@ -52,7 +52,7 @@ module ActiveRecord
return self if args.blank?
relation = clone
- relation.references_values = (references_values + args).flatten.uniq
+ relation.references_values = (references_values + args.flatten.map(&:to_s)).uniq
relation
end