L'environnement.rb est le fichier d'environnement Rails principal. Il nécessite le fichier boot.rb mais boot.rb est exécuté avant Rails :: Initializer.run. En fait, la dernière ligne de boot.rb contient la déclaration suivante
# All that for this:
Rails.boot!
S'il vous plaît noter que si le fichier environment.rb appartient à votre application Rails, le fichier boot.rb est mis à jour chaque fois que vous exécutez le râteau tâche
rake update:rails
Vous ne devez jamais modifier ce fichier.
Pour mieux comprendre comment l'initialisation de Rails fonctionne, Sven a écrit un article très utile appelé The Rails startup process from a paragliders perspective.