Skip to content

Commit b23a400

Browse files
Disable tweak_bootsnap
1 parent 2144a39 commit b23a400

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

decidim-generators/lib/decidim/generators/app_generator.rb

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -206,21 +206,21 @@ def add_production_gems(&block)
206206
end
207207
end
208208

209-
def tweak_bootsnap
210-
gsub_file "config/boot.rb", %r{require 'bootsnap/setup'.*$}, <<~RUBY.rstrip
211-
require "bootsnap"
212-
213-
env = ENV["RAILS_ENV"] || "development"
214-
215-
Bootsnap.setup(
216-
cache_dir: File.expand_path(File.join("..", "tmp", "cache"), __dir__),
217-
development_mode: env == "development",
218-
load_path_cache: true,
219-
compile_cache_iseq: !ENV["SIMPLECOV"],
220-
compile_cache_yaml: true
221-
)
222-
RUBY
223-
end
209+
# def tweak_bootsnap
210+
# gsub_file "config/boot.rb", %r{require 'bootsnap/setup'.*$}, <<~RUBY.rstrip
211+
# require "bootsnap"
212+
213+
# env = ENV["RAILS_ENV"] || "development"
214+
215+
# Bootsnap.setup(
216+
# cache_dir: File.expand_path(File.join("..", "tmp", "cache"), __dir__),
217+
# development_mode: env == "development",
218+
# load_path_cache: true,
219+
# compile_cache_iseq: !ENV["SIMPLECOV"],
220+
# compile_cache_yaml: true
221+
# )
222+
# RUBY
223+
# end
224224

225225
def tweak_spring
226226
return unless File.exist?("config/spring.rb")

0 commit comments

Comments
 (0)