aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2016-02-15 10:47:18 +0100
committerYves Senn <yves.senn@gmail.com>2016-02-15 10:47:18 +0100
commit6c0906f312ffd08bfb7bc178c9556dc3f1865f6b (patch)
tree7193d730b56875251b0e5f5b044189587523fbfc
parent90cd71c8d77a2950e60734513493db399103384a (diff)
parent90d1524aed2804f675bf2f0e4f9c8d808409b671 (diff)
downloadrails-6c0906f312ffd08bfb7bc178c9556dc3f1865f6b.tar.gz
rails-6c0906f312ffd08bfb7bc178c9556dc3f1865f6b.tar.bz2
rails-6c0906f312ffd08bfb7bc178c9556dc3f1865f6b.zip
Merge pull request #23667 from meinac/remove_override_method
Remove the method already overridden by private method
-rw-r--r--activerecord/lib/active_record/relation/finder_methods.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/activerecord/lib/active_record/relation/finder_methods.rb b/activerecord/lib/active_record/relation/finder_methods.rb
index 8b114c6bdf..16563515f6 100644
--- a/activerecord/lib/active_record/relation/finder_methods.rb
+++ b/activerecord/lib/active_record/relation/finder_methods.rb
@@ -561,19 +561,6 @@ module ActiveRecord
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: