aboutsummaryrefslogtreecommitdiffstats
path: root/railties/environments/boot.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/environments/boot.rb')
-rw-r--r--railties/environments/boot.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/environments/boot.rb b/railties/environments/boot.rb
new file mode 100644
index 0000000000..7f30e829a9
--- /dev/null
+++ b/railties/environments/boot.rb
@@ -0,0 +1,8 @@
+RAILS_ROOT = File.join(File.dirname(__FILE__), '..')
+
+unless File.directory?("#{RAILS_ROOT}/vendor/rails")
+ require 'rubygems'
+ require 'initializer'
+else
+ require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
+end \ No newline at end of file