public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
Fix a regression: ApplicationSpawner must not have a hard dependency on 
Rails classes.
Hongli Lai (Phusion) (author)
Fri Mar 28 04:47:10 -0700 2008
commit  533a6cce206cd34b142df56b459241ed930fdf33
tree    09672b95ddbdbfda16b01955dc865b53389ef3d6
parent  7e363bfbd82ec23330739af653a5d2af9e58b4cb
...
210
211
212
213
 
 
 
214
215
216
...
210
211
212
 
213
214
215
216
217
218
0
@@ -210,7 +210,9 @@ private
0
 
0
   def preload_application
0
     Object.const_set(:RAILS_ROOT, @app_root)
0
- ActionController::Base.page_cache_directory = "#{RAILS_ROOT}/public"
0
+ if defined?(ActionController::Base)
0
+ ActionController::Base.page_cache_directory = "#{RAILS_ROOT}/public"
0
+ end
0
     if defined?(Rails::Initializer)
0
       Rails::Initializer.run(:set_load_path)
0
     end
...
 
 
 
 
 
 
...
1
2
3
4
5
6
0
@@ -0,0 +1,6 @@
0
+module ActionController
0
+ class Base
0
+ def self.page_cache_directory=(dir)
0
+ end
0
+ end
0
+end

Comments

    No one has commented yet.