Class: StradaGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- StradaGenerator
- Defined in:
- lib/generators/strada/strada_generator.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#copy_view_files ⇒ Object
8 9 10 11 12 |
# File 'lib/generators/strada/strada_generator.rb', line 8 def copy_view_files @attribute = strada_attribute_value(controller_name) template "controller.js", "app/javascript/controllers/bridge/#{controller_name}_controller.js" rails_command "stimulus:manifest:update" unless Rails.root.join("config/importmap.rb").exist? || [:skip_manifest] end |