# File lib/phusion_passenger/loader_shared_helpers.rb, line 236
        def after_loading_app_code(options)
                # Even though run_load_path_setup_code() 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?(PhusionPassenger.ruby_libdir)
                        $LOAD_PATH.unshift(PhusionPassenger.ruby_libdir)
                        $LOAD_PATH.uniq!
                end
                
                # Post-install framework extensions. Possibly preceded by a call to
                # PhusionPassenger.install_framework_extensions!
                if defined?(::Rails) && !defined?(::Rails::VERSION)
                        require 'rails/version'
                end
        end