You cannot override constants (i assumeyou want to put a different value in it) without getting a warning, hence they are called Constant. In java you cannot override them at all. thank ruby for just throwing a warning.
If you want to initialize it with your new value, just see in the code where it is being declared and put your new value there. thatr way you wont get the warning. On Mar 15, 5:07 pm, Dru <[email protected]> wrote: > Hi, > > I'm having some trouble overriding/defining the default_field_options > constant without raising a warning. I've tried adding the code to do > it in an initializer but that produces a warning (because the constant > is already frozen), after some googling I found a recommendation to > put it in the environment.rb file but that then that throws > > uninitialized constant ActionView (NameError) > > which prevents the app from starting all together. > > Any solution to this would be excellent. Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

