Class: ActiveadminAddons::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/activeadmin_addons/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_initializerObject



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_assetsObject



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