Class: Adminterface::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#add_examplesObject



32
33
34
35
36
# File 'lib/generators/adminterface/install/install_generator.rb', line 32

def add_examples
  return if options[:skip_examples]

  template "dashboard.rb", "app/admin/dashboard.rb"
end

#install_assetsObject



20
21
22
23
24
# File 'lib/generators/adminterface/install/install_generator.rb', line 20

def install_assets
  return unless options[:use_webpacker]

  generate "adminterface:webpacker -v #{options[:version]}"
end

#install_commentsObject



26
27
28
29
30
# File 'lib/generators/adminterface/install/install_generator.rb', line 26

def install_comments
  return if options[:skip_comments]

  generate "adminterface:comments"
end