diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-16 11:22:30 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-16 11:22:30 -0800 |
commit | 1dea7b5a610b663ea3910dc3a81d1fcbc1eb9120 (patch) | |
tree | 344137cd4a085b992bf0f9b988af2cab5ad27385 /activerecord/lib | |
parent | 2e2e58a6a30d013f062157be6ae40617703adc8b (diff) | |
download | rails-1dea7b5a610b663ea3910dc3a81d1fcbc1eb9120.tar.gz rails-1dea7b5a610b663ea3910dc3a81d1fcbc1eb9120.tar.bz2 rails-1dea7b5a610b663ea3910dc3a81d1fcbc1eb9120.zip |
no need for Array.wrap
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation/predicate_builder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/predicate_builder.rb b/activerecord/lib/active_record/relation/predicate_builder.rb index 80b5495569..1888b4ca1d 100644 --- a/activerecord/lib/active_record/relation/predicate_builder.rb +++ b/activerecord/lib/active_record/relation/predicate_builder.rb @@ -19,7 +19,7 @@ module ActiveRecord case value when ActiveRecord::Relation - value.select_values = Array.wrap("#{value.klass.quoted_table_name}.id") if value.select_values.empty? + value.select_values = ["#{value.klass.quoted_table_name}.id"] if value.select_values.empty? attribute.in(value.arel.ast) when Array, ActiveRecord::Associations::AssociationCollection values = value.to_a.map { |x| |