Class: R7HotwireTemplate
- Inherits:
-
BaseTemplate
- Object
- BaseTemplate
- R7HotwireTemplate
- Defined in:
- lib/k_starter/r7_hotwire.rb
Overview
R7HotwireTemplate
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
Instance Method Summary collapse
-
#after_bundle ⇒ Object
./bin/rails javascript:install:esbuild.
- #customize_template ⇒ Object
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
11 12 13 |
# File 'lib/k_starter/r7_hotwire.rb', line 11 def host @host end |
Instance Method Details
#after_bundle ⇒ Object
./bin/rails javascript:install:esbuild
24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/k_starter/r7_hotwire.rb', line 24 def after_bundle add_action_text if action_text? add_active_storage if active_storage? add_devise if devise? add_rspec if rspec? add_javascript_libraries if javascript_libraries? gac('Base Rails 7 default structure created') setup_models if sample_models? setup_common_pages if common_pages? rails_command('db:migrate') if db_migrate? end |
#customize_template ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/k_starter/r7_hotwire.rb', line 13 def customize_template gac('Base Rails 7 image created') settings_for_asset_management ask_questions add_gems add_gem_groups end |