Rails Engine configuration woes
November 3rd, 2005
I learned a nice one today. If you use Rails Engines and you want to configure your environments differently, you can’t do this:
If you do that, you’ll get the following backtrace:
What is happening is that Rails loads the environment file before the Rails Engine plugin is initialized. The solution ? Do everything in config/environment.rb:
Leave a Reply