1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00
paper-trail-gem--paper_trail/spec/dummy_app/config/boot.rb
Jared Beck 408aa74dc6 Drop support for rails 4.0 and 4.1
EoL for both was 2016-06-30
http://weblog.rubyonrails.org/2016/6/30/Rails-5-0-final/

PT continued to support them for 15 months after EoL.
2017-09-20 05:26:13 -04:00

16 lines
558 B
Ruby

require "rubygems"
# 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
end
require "bundler"
Bundler.setup
$LOAD_PATH.unshift(File.expand_path("../../../../lib", __FILE__))