paper-trail-gem--paper_trail/spec/dummy_app/config/boot.rb

19 lines
589 B
Ruby
Raw Normal View History

2017-12-11 04:05:11 +00:00
# frozen_string_literal: true
require "rubygems"
2011-02-08 17:16:35 +00:00
# When you run rake locally (not on travis) in this dummy app, set the
# BUNDLE_GEMFILE env. variable to ensure that the correct version of AR is used
# for e.g. migrations. See examples in CONTRIBUTING.md.
unless ENV.key?("BUNDLE_GEMFILE")
gemfile = File.expand_path("../../../../Gemfile", __FILE__)
if File.exist?(gemfile)
puts "Booting PT test dummy app: Using gemfile: #{gemfile}"
ENV["BUNDLE_GEMFILE"] = gemfile
end
2011-02-08 17:16:35 +00:00
end
require "bundler"
Bundler.setup
2011-02-08 17:16:35 +00:00
$LOAD_PATH.unshift(File.expand_path("../../../../lib", __FILE__))