ago(seconds)
public
Converts <a href="/rails/Date">Date</a> to a Time (or DateTime if
necessary) with the time portion set to the beginning of the day (0:00) and
then subtracts the specified number of seconds
Show source
def ago(seconds)
to_time.since(-seconds)
end