Class: Navigasmic::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject


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

def copy_initializer
  copy_file 'templates/initializer.rb', 'config/initializers/navigasmic.rb'
end

#display_readmeObject


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

def display_readme
  readme 'POST_INSTALL' if behavior == :invoke
end