Question d’entretien chez X

Implement 1.day.ago in Ruby. It works in Rails but implement it in Ruby