aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-08-08 17:12:35 -0400
committerGitHub <noreply@github.com>2017-08-08 17:12:35 -0400
commitb28bba92a9f4552cc42e40ed48f0df86214276f3 (patch)
tree0036870746efb309137cf0e157750f155b2d8c49
parent673fb4c433b58bd67bbf473598b5e35631e07b30 (diff)
parent1dfc211bfa7ebbce7740898a16994fa58cbedb6a (diff)
downloadrails-b28bba92a9f4552cc42e40ed48f0df86214276f3.tar.gz
rails-b28bba92a9f4552cc42e40ed48f0df86214276f3.tar.bz2
rails-b28bba92a9f4552cc42e40ed48f0df86214276f3.zip
Merge pull request #30122 from yhirano55/use_with_dummy_app_in_gitignore
Use `with_dummy_app?` in gitignore
-rw-r--r--railties/lib/rails/generators/rails/plugin/templates/gitignore2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/plugin/templates/gitignore b/railties/lib/rails/generators/rails/plugin/templates/gitignore
index 54c78d7927..757172e6a6 100644
--- a/railties/lib/rails/generators/rails/plugin/templates/gitignore
+++ b/railties/lib/rails/generators/rails/plugin/templates/gitignore
@@ -1,7 +1,7 @@
.bundle/
log/*.log
pkg/
-<% unless options[:skip_test] && options[:dummy_path] == 'test/dummy' -%>
+<% if with_dummy_app? -%>
<%= dummy_path %>/db/*.sqlite3
<%= dummy_path %>/db/*.sqlite3-journal
<%= dummy_path %>/log/*.log