Skip to content

Commit e069225

Browse files
Anchor generated plugin .gitgnore entries
This is a good practice to encourage to prevent inadvertent exclusions from version control. This also matches generated app .gitignore files.
1 parent 44cc2e7 commit e069225

File tree

1 file changed

+10
-10
lines changed
  • railties/lib/rails/generators/rails/plugin/templates

1 file changed

+10
-10
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
.bundle/
2-
log/*.log
3-
pkg/
1+
/.bundle/
2+
/log/*.log
3+
/pkg/
44
<% if with_dummy_app? -%>
55
<% if sqlite3? -%>
6-
<%= dummy_path %>/db/*.sqlite3
7-
<%= dummy_path %>/db/*.sqlite3-*
6+
/<%= dummy_path %>/db/*.sqlite3
7+
/<%= dummy_path %>/db/*.sqlite3-*
88
<% end -%>
9-
<%= dummy_path %>/log/*.log
9+
/<%= dummy_path %>/log/*.log
1010
<% unless options[:skip_javascript] -%>
11-
<%= dummy_path %>/node_modules/
12-
<%= dummy_path %>/yarn-error.log
11+
/<%= dummy_path %>/node_modules/
12+
/<%= dummy_path %>/yarn-error.log
1313
<% end -%>
1414
<% unless skip_active_storage? -%>
15-
<%= dummy_path %>/storage/
15+
/<%= dummy_path %>/storage/
1616
<% end -%>
17-
<%= dummy_path %>/tmp/
17+
/<%= dummy_path %>/tmp/
1818
<% end -%>
1919
.byebug_history

0 commit comments

Comments
 (0)