Jose Luis Duran
Not a member
Jose Luis Duran's latest activity
Monday, July 12 2010
-
Jose Luis Duran commented at 2:36 AMOK got it. Sorry!
require 'timecop' Timecop.freeze(Time.now) if 1.year.ago == 12.months.ago puts "Everything is OK!" end
Sunday, July 11 2010
-
Jose Luis Duran commented at 11:03 PMOk. Will do.
It's just:
if 1.year.to_i != 12.months.to_i puts "something must be wrong!" endThank you.
-
Jose Luis Duran created the ticket at 11:34 AMin /activesupport/lib/active_support/core_ext/integer/time.rb:
# # equivalent to 30.4375.days.to_i.from_now # 1.month.to_i.from_now def months ActiveSup...