Class: Adminterface::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Adminterface::Generators::InstallGenerator
- Defined in:
- lib/generators/adminterface/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_examples ⇒ Object
32 33 34 35 36 |
# File 'lib/generators/adminterface/install/install_generator.rb', line 32 def add_examples return if [:skip_examples] template "dashboard.rb", "app/admin/dashboard.rb" end |
#install_assets ⇒ Object
20 21 22 23 24 |
# File 'lib/generators/adminterface/install/install_generator.rb', line 20 def install_assets return unless [:use_webpacker] generate "adminterface:webpacker -v #{[:version]}" end |
#install_comments ⇒ Object
26 27 28 29 30 |
# File 'lib/generators/adminterface/install/install_generator.rb', line 26 def install_comments return if [:skip_comments] generate "adminterface:comments" end |