Skip to content

Commit

Permalink
Fix installing in fresh Rails app with Stimulus
Browse files Browse the repository at this point in the history
Fresh Rails apps with Stimulus installed already have
a `app/javascript/controller/index.js` file with boilerplate
code. Since we install this file as well we need to
overwrite it if auto acept is enabled.

(cherry picked from commit 96aa506)
  • Loading branch information
tvdeyen committed Aug 28, 2024
1 parent 10c3061 commit 6f61879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
end

with_log['installing files'] do
directory 'app', 'app', verbose: false
directory 'app', 'app', verbose: auto_accept, force: auto_accept
directory 'public', 'public'

copy_file 'config/initializers/solidus_auth_devise_unauthorized_redirect.rb'
Expand Down

0 comments on commit 6f61879

Please sign in to comment.