We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3694995 commit 484cc45Copy full SHA for 484cc45
lib/generators/stimulus/stimulus_generator.rb
@@ -11,7 +11,7 @@ class StimulusGenerator < Rails::Generators::NamedBase # :nodoc:
11
12
def copy_view_files
13
@attribute = stimulus_attribute_value(controller_name)
14
- template "controller.js", "#{options[:js_root]}/controllers/#{controller_name}_controller.js"
+ template "controller.js", "#{options.js_root}/controllers/#{controller_name}_controller.js"
15
rails_command "stimulus:manifest:update" unless Rails.root.join("config/importmap.rb").exist? || options[:skip_manifest]
16
end
17
0 commit comments