Hemant Kumar wrote: > I have seen this stuff before, when i i tried to do something like > this, in one of my plugins. > > class ActiveRecord::Schema > # some migration foobar > end > > Rewriting above code like this: > > module ActiveRecord > class Schema > # some migration foobar > end > end > > fixed the error. :)
In Rails 2.x, this approach only takes us halfway to the solution. See this bug report[1] for the rest of the solution, which involves monkeypatching the load_missing_constant() method. [1] https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2283-unnecessary-exception-raised-in-asdependenciesload_missing_constant -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

