Permalink
Browse files

Fix loading of config/environment.rb on Ruby 1.9.2.

  • Loading branch information...
1 parent 312b5e1 commit bc58442664db3a77e50c07db7a348728fda23e1a jastix committed with FooBarWidget Aug 29, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/phusion_passenger/railz/application_spawner.rb
@@ -300,7 +300,7 @@ def load_environment_with_passenger
if File.exist?('config/preinitializer.rb')
require 'config/preinitializer'
end
- require 'config/environment'
+ require File.expand_path('config/environment')
if ActionController::Base.page_cache_directory.blank?
ActionController::Base.page_cache_directory = "#{RAILS_ROOT}/public"
end
@@ -387,3 +387,4 @@ def start_request_handler(channel, forked)
end # module Railz
end # module PhusionPassenger
+

0 comments on commit bc58442

Please sign in to comment.