allocator undefined for Date #21
Comments
From the README:
|
Oops, I should read the code before just looking at the error message. Looks like I need to add a dup and possibly clone method since ruby won't take care of this automatically. |
Adding #dup would be excellent; otherwise, home_run is not really usable in Rails 3.0.5. |
In the mean time, this monkey patch will get the job done (could drop it in config/initializers for a Rails app).
|
That should work for dup, but won't work for clone. I hope to put out a new gem release later today that should fix dup, clone, and allocate, I'm testing the changes now. |
Thanks! I was just putting what I think is the minimal code to get it working with Rails 3.0.5. |
This should be fixed by:
The changes should work for all supported ruby implementations, except that DateTime#{dup,clone} cause SystemStackErrors on JRuby due to a bug in JRuby's cext support. Thanks for filing the issue. 1.0.1 gems have been released with those changes and a small fix for #step. |
Tried this with home_run (1.0.0) and ActiveSupport (3.0.4 and 3.0.5)
The text was updated successfully, but these errors were encountered: