In my current rails application, I now have the following issue:
script/console Loading development environment. >> bob = Struct.new(:anysymbol) NameError: identifier anysymbol needs to be constant from (irb):1:in `new' from (irb):1 >> exit
This occurs regardless of what symbols are passed to Struct.new call.
Consequently, nothing that uses Struct will work anymore. I discovered this when attempting to use Fastercsv, which fails when required.
I'm completely mystified by this error and have little idea how to go about tracking down what is causing it, short of rebuilding my application one step at a time. It's fairly big to be doing with at this point.
What could cause such a problem?
I've made no monkeypatches to Struct. I can't find any code messing with Struct among the plugins I've installed.
Help.
Michael Johnston