diff options
author | James Yang <jamesyang124@gmail.com> | 2014-06-09 01:18:43 -0700 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-06-10 08:46:07 +0200 |
commit | 9feb4a8b5c4c9834986c7451bac078b37ed554b2 (patch) | |
tree | 1f8883f406a75d099acca4b3fc525aaaa4a9de41 /activerecord/lib | |
parent | 8ed1dec25e8a818edca1fec3f064b9937326836c (diff) | |
download | rails-9feb4a8b5c4c9834986c7451bac078b37ed554b2.tar.gz rails-9feb4a8b5c4c9834986c7451bac078b37ed554b2.tar.bz2 rails-9feb4a8b5c4c9834986c7451bac078b37ed554b2.zip |
ActiveRecord::FinderMethods.find passes proc parameter #15382
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 47e90e9021..0c9c761f97 100644 --- a/activerecord/lib/active_record/relation/finder_methods.rb +++ b/activerecord/lib/active_record/relation/finder_methods.rb @@ -65,7 +65,7 @@ module ActiveRecord # # returns an Array of the required fields, available since Rails 3.1. def find(*args) if block_given? - to_a.find { |*block_args| yield(*block_args) } + to_a.find(*args) { |*block_args| yield(*block_args) } else find_with_ids(*args) end |