For those that want to hear the grating sound of my voice, Geoffrey Grosenbach just put up a conversation we had earlier this week over at the Ruby on Rails podcast. It’s a pretty lengthy episode, clocking in at around 25 minutes – so only give it a listen if you’re looking for a sure-fire way to get to sleep.
For those looking for a way to manipulate your Rails application before the main initializer block of your
environment.rb file runs, your wish has been answered.
config/preinitializer.rb file exists, Rails will load it prior to the
environment.rb file, letting you have at the Rails classes before plugins do and before the environment is loaded.