Class: Baldur::Generators::InstallPanelSecondaryGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Baldur::Generators::InstallPanelSecondaryGenerator
show all
- Defined in:
- lib/generators/baldur/install_panel_secondary/install_panel_secondary_generator.rb
Instance Method Summary
collapse
Instance Method Details
#create_controller_shim ⇒ Object
14
15
16
17
18
|
# File 'lib/generators/baldur/install_panel_secondary/install_panel_secondary_generator.rb', line 14
def create_controller_shim
create_file "app/javascript/controllers/panel_secondary_controller.js", <<~JS
export { default } from "baldur/controllers/panel_secondary_controller"
JS
end
|
#create_helper ⇒ Object
6
7
8
9
10
11
12
|
# File 'lib/generators/baldur/install_panel_secondary/install_panel_secondary_generator.rb', line 6
def create_helper
create_file "app/helpers/panel_secondary_helper.rb", <<~RUBY
module PanelSecondaryHelper
include Baldur::Optional::PanelSecondaryHelper
end
RUBY
end
|