Created
July 19, 2010 22:43
-
-
Save adelevie/482161 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >> foo.later_date = 1000.days + foo.created_at | |
| TypeError: ActiveSupport::TimeWithZone can't be coerced into Fixnum | |
| from /home/adelevie/ruby/gems/gems/activesupport-2.3.5/lib/active_support/time_with_zone.rb:309:in `+' | |
| from /home/adelevie/ruby/gems/gems/activesupport-2.3.5/lib/active_support/duration.rb:22:in `+' | |
| from (irb):8 | |
| >> foo.later_date = foo.created_at + 1000.days | |
| => Mon, 09 Aug 2010 18:37:04 EDT -04:00 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment