summaryrefslogtreecommitdiff
path: root/config/boot.rb
blob: ec9470bc5062e4a431756d9eee5df70f03770544 (plain)
1
2
3
4
5
6
# frozen_string_literal: true

require_relative 'bundler_setup'

enable_bootsnap_default_value = ENV['RAILS_ENV'] != 'production' ? '1' : '0'
require 'bootsnap/setup' if %w(1 yes true).include?(ENV.fetch('ENABLE_BOOTSNAP', enable_bootsnap_default_value))