aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test/dummy/config/boot.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activestorage/test/dummy/config/boot.rb')
-rw-r--r--activestorage/test/dummy/config/boot.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/activestorage/test/dummy/config/boot.rb b/activestorage/test/dummy/config/boot.rb
new file mode 100644
index 0000000000..59459d4ae3
--- /dev/null
+++ b/activestorage/test/dummy/config/boot.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+# Set up gems listed in the Gemfile.
+ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../Gemfile", __dir__)
+
+require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
+$LOAD_PATH.unshift File.expand_path("../../../lib", __dir__)