aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/code/getting_started/config/boot.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/guides/code/getting_started/config/boot.rb')
-rw-r--r--railties/guides/code/getting_started/config/boot.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/guides/code/getting_started/config/boot.rb b/railties/guides/code/getting_started/config/boot.rb
new file mode 100644
index 0000000000..4489e58688
--- /dev/null
+++ b/railties/guides/code/getting_started/config/boot.rb
@@ -0,0 +1,6 @@
+require 'rubygems'
+
+# Set up gems listed in the Gemfile.
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
+
+require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])