This post originated from an RSS feed registered with Ruby Buzz
by rwdaigle.
Original Post: What's New in Edge Rails: Pre-Environment Load Hook
Feed Title: Ryan's Scraps
Feed URL: http://feeds.feedburner.com/RyansScraps
Feed Description: Ryan Daigle's various technically inclined rants along w/ the "What's new in Edge Rails" series.
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.
If a 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.