GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
'Can't modify frozen object' when calling #freeze after instantiation
Although I did add tests to this which should have failed, for some reason they didn't. If someone with more knowledge of Rails dependencies could help me out I would appreciate it.
The issue this fixes is here: #1966
There is a 100% repeatable (on the 3 MacBooks I tried) bug wherein executing the following:
rails new foo
And within IRB:
Raises a Can't modify a frozen object RuntimeError.
Can't modify a frozen object
Although I can get this error to occur every time, I cannot get it to be reproduced in a test.
I hope this at least puts everyone on the right track to tracking down this problem.
Better split this line into two, and get rid of the semicolons.
I'm agree. Can you amend your patch and force-push to your branch?
Sorry guys, was on vacation. I can certainly do that. I'll get it in today.
TimeZone requires preloading before #freeze
Split onto two lines
@sikachu Sorry for the delay. Hope this meets your approval. Thanks again for taking a look at this!
Not sure about the orignal issue. But what's going on about this PR?
Is this still an issue?
This was previously an issue for me but I haven't been hacking on timezones in a while.
I just tried it again and cannot reproduce. I'll close it for now.