From 60eaae4f7df1f1dae91defb87d3707451c359cf4 Mon Sep 17 00:00:00 2001 From: francis Date: Wed, 23 Jan 2008 01:48:14 +0000 Subject: Freeze in rails 2.0.2 (Am I going to regret having this beast in CVS?) --- vendor/rails-2.0.2/railties/dispatches/dispatch.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 vendor/rails-2.0.2/railties/dispatches/dispatch.rb (limited to 'vendor/rails-2.0.2/railties/dispatches/dispatch.rb') diff --git a/vendor/rails-2.0.2/railties/dispatches/dispatch.rb b/vendor/rails-2.0.2/railties/dispatches/dispatch.rb new file mode 100755 index 000000000..9b5ae760f --- /dev/null +++ b/vendor/rails-2.0.2/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 -- cgit v1.2.3