aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoshiyuki Hirano <yhirano@me.com>2017-08-08 04:22:00 +0900
committerYoshiyuki Hirano <yhirano@me.com>2017-08-08 04:25:39 +0900
commit1dfc211bfa7ebbce7740898a16994fa58cbedb6a (patch)
tree5d849a89a91c58f74c50924b1fcf069603208ee4
parent7c89948c416fbc32b59e33a0ab454545b4f6fed7 (diff)
downloadrails-1dfc211bfa7ebbce7740898a16994fa58cbedb6a.tar.gz
rails-1dfc211bfa7ebbce7740898a16994fa58cbedb6a.tar.bz2
rails-1dfc211bfa7ebbce7740898a16994fa58cbedb6a.zip
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