Created
September 22, 2010 15:11
-
-
Save thinkerbot/591852 to your computer and use it in GitHub Desktop.
Rails Config Order
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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