module ActiveRecord::FinderMethods
def find_last
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
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