instance method
find_last
Ruby on Rails 3.0.20
Since v3.0.20Signature
find_last()
No documentation comment.
Source
# File activerecord/lib/active_record/relation/finder_methods.rb, line 347
def find_last
if loaded?
@records.last
else
@last ||= reverse_order.limit(1).to_a[0]
end
end
Defined in activerecord/lib/active_record/relation/finder_methods.rb line 347
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::FinderMethods