method
find_last
v3.2.13 -
Show latest stable
- Class:
ActiveRecord::FinderMethods
find_last()protected
No documentation available.
# File activerecord/lib/active_record/relation/finder_methods.rb, line 384
def find_last
if loaded?
@records.last
else
@last ||=
if offset_value || limit_value
to_a.last
else
reverse_order.limit(1).to_a[0]
end
end
end