Skip to content

Instantly share code, notes, and snippets.

@woodie
Created December 31, 2009 08:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woodie/266675 to your computer and use it in GitHub Desktop.
Save woodie/266675 to your computer and use it in GitHub Desktop.
Rails 3 frameworks
~/rails/railties/lib/rails/application.rb
# Preload all frameworks specified by the Configuration#frameworks.
# Used by Passenger to ensure everything's loaded before forking and
# to avoid autoload race conditions in JRuby.
initializer :preload_frameworks do
ActiveSupport::Autoload.eager_autoload! if config.preload_frameworks
end
# commenting out this had no effect on unwanted frameworks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment