diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-07-20 00:28:51 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-07-20 00:28:51 +0530 |
commit | 02cbaf059330729a1bf9528c24b7dbbfbf6bdc88 (patch) | |
tree | d9fc03524462588e1a20456fe0acc91640783fce /activerecord/lib | |
parent | 30289c76830430d361a8c2045d54103c435376c2 (diff) | |
download | rails-02cbaf059330729a1bf9528c24b7dbbfbf6bdc88.tar.gz rails-02cbaf059330729a1bf9528c24b7dbbfbf6bdc88.tar.bz2 rails-02cbaf059330729a1bf9528c24b7dbbfbf6bdc88.zip |
avoid Symbol#to_proc
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation/finder_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/finder_methods.rb b/activerecord/lib/active_record/relation/finder_methods.rb index 220ead4edb..8cef4e5554 100644 --- a/activerecord/lib/active_record/relation/finder_methods.rb +++ b/activerecord/lib/active_record/relation/finder_methods.rb @@ -243,7 +243,7 @@ module ActiveRecord end def construct_limited_ids_condition(relation) - orders = relation.order_values.map(&:presence).compact + orders = relation.order_values.map { |val| val.presence }.compact values = @klass.connection.distinct("#{@klass.connection.quote_table_name table_name}.#{primary_key}", orders) relation = relation.dup |