aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/vendor/rack.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/vendor/rack.rb')
-rw-r--r--actionpack/lib/action_controller/vendor/rack.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/vendor/rack.rb b/actionpack/lib/action_controller/vendor/rack.rb
index 2ab7575b05..2438059f76 100644
--- a/actionpack/lib/action_controller/vendor/rack.rb
+++ b/actionpack/lib/action_controller/vendor/rack.rb
@@ -4,5 +4,6 @@ begin
gem 'rack', '~> 0.4.0'
require 'rack'
rescue Gem::LoadError
- require "#{File.dirname(__FILE__)}/rack-0.4.0/rack"
+ $LOAD_PATH << "#{File.dirname(__FILE__)}/rack-0.4.0"
+ require 'rack'
end