diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-11-07 19:39:21 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-11-07 19:39:21 -0200 |
commit | 69ba5b46df3f5166d694a102e81839c6e4a02604 (patch) | |
tree | a486784d1488f1a90e39dbd82ac0530dd8e09382 /activerecord/lib/active_record | |
parent | c233b2f653601170f462a92a2406831f21f2c824 (diff) | |
download | rails-69ba5b46df3f5166d694a102e81839c6e4a02604.tar.gz rails-69ba5b46df3f5166d694a102e81839c6e4a02604.tar.bz2 rails-69ba5b46df3f5166d694a102e81839c6e4a02604.zip |
Remove block given check from private find_with_ids
This is already handled by #find, it's a duplicate check, since
find_with_ids is not called from anywhere else.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/relation/finder_methods.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/relation/finder_methods.rb b/activerecord/lib/active_record/relation/finder_methods.rb index 99c2f45bc8..008738bfd9 100644 --- a/activerecord/lib/active_record/relation/finder_methods.rb +++ b/activerecord/lib/active_record/relation/finder_methods.rb @@ -234,8 +234,6 @@ module ActiveRecord end def find_with_ids(*ids) - return to_a.find { |*block_args| yield(*block_args) } if block_given? - expects_array = ids.first.kind_of?(Array) return ids.first if expects_array && ids.first.empty? |