diff options
author | francis <francis> | 2008-09-03 14:05:56 +0000 |
---|---|---|
committer | francis <francis> | 2008-09-03 14:05:56 +0000 |
commit | 3823e5cbc642d95a17fdb316736e7afe6334140c (patch) | |
tree | aaa186d9fc8fead8d777c78b98de87c02fc18ca2 /vendor/rails-2.1.0/railties/dispatches/dispatch.rb | |
parent | af7a374ae63935168df2bbc02288f54f52c701a5 (diff) |
Rails 2.1.0
Diffstat (limited to 'vendor/rails-2.1.0/railties/dispatches/dispatch.rb')
-rwxr-xr-x | vendor/rails-2.1.0/railties/dispatches/dispatch.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/rails-2.1.0/railties/dispatches/dispatch.rb b/vendor/rails-2.1.0/railties/dispatches/dispatch.rb new file mode 100755 index 000000000..9b5ae760f --- /dev/null +++ b/vendor/rails-2.1.0/railties/dispatches/dispatch.rb @@ -0,0 +1,10 @@ +#!/usr/local/bin/ruby + +require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) + +# If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: +# "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired +require "dispatcher" + +ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun) +Dispatcher.dispatch
\ No newline at end of file |