Class: Maquina::Generators::InstallStimulusControllersGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Maquina::Generators::InstallStimulusControllersGenerator
- Defined in:
- lib/generators/maquina/install_stimulus_controllers/install_stimulus_controllers_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_stimulus_controllers ⇒ Object
6 7 8 9 10 |
# File 'lib/generators/maquina/install_stimulus_controllers/install_stimulus_controllers_generator.rb', line 6 def copy_stimulus_controllers Dir.glob(File.join(engine_views_path, "*_controller.js")) do |file| copy_file file, File.join(app_views_path, File.basename(file)) end end |