aboutsummaryrefslogtreecommitdiffstats
path: root/load_paths.rb
diff options
context:
space:
mode:
Diffstat (limited to 'load_paths.rb')
-rw-r--r--load_paths.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/load_paths.rb b/load_paths.rb
new file mode 100644
index 0000000000..d5f2ca0734
--- /dev/null
+++ b/load_paths.rb
@@ -0,0 +1,21 @@
+begin
+ require File.expand_path('../.bundle/environment', __FILE__)
+rescue LoadError
+ begin
+ require 'rubygems'
+ require 'bundler'
+ Bundler.setup
+ rescue LoadError
+ %w(
+ actionmailer
+ actionpack
+ activemodel
+ activerecord
+ activeresource
+ activesupport
+ railties
+ ).each do |framework|
+ $:.unshift File.expand_path("../#{framework}/lib", __FILE__)
+ end
+ end
+end