Skip to content

Instantly share code, notes, and snippets.

@thinkerbot
Created September 22, 2010 15:11
Show Gist options
  • Select an option

  • Save thinkerbot/591852 to your computer and use it in GitHub Desktop.

Select an option

Save thinkerbot/591852 to your computer and use it in GitHub Desktop.
Rails Config Order
The configuration order - Rails 2.3.3.
1. config/preinitializer.rb
2. config/environment.rb
3. config/environments/#{RAILS_ENV}.rb
4. plugin initialization
5. gem initialization
6. config/initializer/*.rb
7. all after_initialize blocks, in the order they were defined in (so same order as above)
8. any junk left below the Rails::Initializer.run call/block in environment.rb
http://www.sekuda.com/rails_initialization_and_configuration_order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment