Forum: Ruby on Rails catching frozen hashes

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
8d4c3605bb2853f5088f8719d352f3cd?d=identicon&s=25 Clem Rock (clemrock)
on 2007-04-18 06:51

   I have been wrestling w/ the frozen hash problem in a script and I'm
trying to catch this at the source where it crashes the program in
flames.    Unfortunately, when I look at the errors, the failure is way
up in the active record ancestery chain.

Here's the first entries in the error output:


Also, I know you can test to see if a hash is frozen by using the
frozen? method.

I just don't know where test and rescue this exception.

Thanks for any help!
This topic is locked and can not be replied to.