public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Search Repo:
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
*Really* fix Rails 1.0 compatibility this time.
Hongli Lai (Phusion) (author)
Tue May 13 02:32:04 -0700 2008
commit  960df54aaaf00e0d54db44d5a72003cb47824856
tree    f413140a5f1d3fe71cb00da1c338e56ae1a395f3
parent  e5a58566e8d2c606d32bdd592c3d8b5f93edbaf9
...
243
244
245
246
247
248
249
250
251
252
253
254
 
255
 
 
 
256
257
258
...
243
244
245
 
 
 
 
246
247
248
249
250
251
252
253
254
255
256
257
258
0
@@ -243,16 +243,16 @@ private
0
     require 'action_mailer'
0
     require 'dispatcher'
0
     begin
0
-      # Part of Rails 1.0.
0
-      require 'rails_version'
0
-    rescue LoadError
0
-      require 'ruby_version_check'
0
       if ::Rails::VERSION::MAJOR >= 2
0
         require 'active_resource'
0
       else
0
         require 'action_web_service'
0
       end
0
+      require 'ruby_version_check'
0
       require 'active_support/whiny_nil'
0
+    rescue NameError
0
+      # Rails < 1.1
0
+      require 'action_web_service'
0
     end
0
     Object.send(:remove_const, :RAILS_ROOT)
0
   end

Comments

    No one has commented yet.