Skip to content

Commit 484cc45

Browse files
committed
Use .js_root instead place of hash accessor
1 parent 3694995 commit 484cc45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/stimulus/stimulus_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class StimulusGenerator < Rails::Generators::NamedBase # :nodoc:
1111

1212
def copy_view_files
1313
@attribute = stimulus_attribute_value(controller_name)
14-
template "controller.js", "#{options[:js_root]}/controllers/#{controller_name}_controller.js"
14+
template "controller.js", "#{options.js_root}/controllers/#{controller_name}_controller.js"
1515
rails_command "stimulus:manifest:update" unless Rails.root.join("config/importmap.rb").exist? || options[:skip_manifest]
1616
end
1717

0 commit comments

Comments
 (0)