Skip to content

Commit

Permalink
Rename application.rb template application.rb.tt
Browse files Browse the repository at this point in the history
This avoids issues with tooling (like YARD) trying to parse this as
ruby, and getting confused when it encounters an erb tag.

.rb.tt is the extension Rails uses for these types of files.
  • Loading branch information
jhawthorn committed Mar 16, 2018
1 parent dc501ce commit ddedc46
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/generators/spree/dummy/dummy_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_dummy_config

template "rails/database.yml", "#{dummy_path}/config/database.yml", force: true
template "rails/boot.rb", "#{dummy_path}/config/boot.rb", force: true
template "rails/application.rb", "#{dummy_path}/config/application.rb", force: true
template "rails/application.rb.tt", "#{dummy_path}/config/application.rb", force: true
template "rails/routes.rb", "#{dummy_path}/config/routes.rb", force: true
template "rails/test.rb", "#{dummy_path}/config/environments/test.rb", force: true
template "rails/script/rails", "#{dummy_path}/spec/dummy/script/rails", force: true
Expand Down

0 comments on commit ddedc46

Please sign in to comment.