Class: ActiveadminAddons::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ActiveadminAddons::Generators::InstallGenerator
- Defined in:
- lib/generators/activeadmin_addons/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_initializer ⇒ Object
6 7 8 |
# File 'lib/generators/activeadmin_addons/install/install_generator.rb', line 6 def create_initializer template "initializer.rb", "config/initializers/activeadmin_addons.rb" end |
#setup_assets ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/generators/activeadmin_addons/install/install_generator.rb', line 10 def setup_assets if use_webpacker? generate "activeadmin_addons:webpacker" else generate "activeadmin_addons:assets" end end |