Class: Solidcrud::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



12
13
14
# File 'lib/generators/solidcrud/install_generator.rb', line 12

def copy_initializer
  template 'solidcrud.rb', 'config/initializers/solidcrud.rb'
end

#mount_engineObject



8
9
10
# File 'lib/generators/solidcrud/install_generator.rb', line 8

def mount_engine
  route "mount Solidcrud::Engine => '/admin'"
end

#show_readmeObject



16
17
18
# File 'lib/generators/solidcrud/install/install_generator.rb', line 16

def show_readme
  readme 'INSTALL.md'
end