We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a85d32e commit 10d339fCopy full SHA for 10d339f
test/support/application_generator.rb
@@ -59,16 +59,12 @@ def generate_files
59
c.gsub!(/(gem '(byebug|web-console|sdoc|jbuilder)')/, "# \\1")
60
61
if @version.to_s < '5.2'
62
- c.gsub!(/(gem 'sqlite3')/, "# \\1")
+ c.gsub!(/(gem 'sqlite3')/, "\\1, '< 1.4'")
63
end
64
65
c
66
67
68
- if @version.to_s < '5.2'
69
- append_to_file(application.gemfile, "gem 'sqlite3', '< 1.4'")
70
- end
71
-
72
rewrite_file(application.path("config/environments/test.rb")) do |c|
73
c.sub!(/config\.cache_classes\s*=\s*true/, "config.cache_classes = false")
74
0 commit comments