views:

24

answers:

0
class Date
  class <<self
    alias_method :broke_ass_today, :today
  end

  def self.today
    Time.zone.now.to_date rescue Date.broke_ass_today
  end
end

because I would really hate to replace Date.today with that statement everywhere in our code base...

that and its just much simpler write (and read) date Date.today, because that's what we are used to.