Permalink
Browse files

Merge pull request #23667 from meinac/remove_override_method

Remove the method already overridden by private method
  • Loading branch information...
senny committed Feb 15, 2016
2 parents 90cd71c + 90d1524 commit 6c0906f312ffd08bfb7bc178c9556dc3f1865f6b
Showing with 0 additions and 13 deletions.
  1. +0 −13 activerecord/lib/active_record/relation/finder_methods.rb
@@ -561,19 +561,6 @@ def find_nth_with_limit(index, limit)
relation.limit(limit).to_a
end
def find_last
if loaded?
@records.last
else
@last ||=
if limit_value
to_a.last
else
reverse_order.limit(1).to_a.first
end
end
end
private
def find_nth_with_limit_and_offset(index, limit, offset:) # :nodoc:

0 comments on commit 6c0906f

Please sign in to comment.