A convenience wrapper for find(:last, *args).
You can pass in all the
same arguments to this method as you can to find(:last).
# File activerecord/lib/active_record/relation/finder_methods.rb, line 134
def last(*args)
if args.any?
if args.first.kind_of?(Integer) || (loaded? && !args.first.kind_of?(Hash))
to_a.last(*args)
else
apply_finder_options(args.first).last
end
else
find_last
end
end