# File lib/phusion_passenger/utils.rb, line 348 def after_loading_app_code(options) # Even though prepare_app_process() restores the Phusion Passenger # load path after setting up Bundler, the app itself might also # remove Phusion Passenger from the load path for whatever reason, # so here we restore the load path again. if !$LOAD_PATH.include?(LIBDIR) $LOAD_PATH.unshift(LIBDIR) $LOAD_PATH.uniq! end # Post-install framework extensions. Possibly preceded by a call to # PhusionPassenger.install_framework_extensions! require 'rails/version' if defined?(::Rails) && !defined?(::Rails::VERSION) if defined?(::Rails) && ::Rails::VERSION::MAJOR <= 2 require 'phusion_passenger/classic_rails_extensions/init' ClassicRailsExtensions.init!(options) # Rails 3 extensions are installed by # PhusionPassenger.install_framework_extensions! end PhusionPassenger._spawn_options = nil end