Class: SimpleChangelog::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#mount_engineObject



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

def mount_engine
  route 'mount SimpleChangelog::Engine => \'/changelog\', as: \'simple_changelog\''
end

#show_readmeObject



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

def show_readme
  readme 'README' if behavior == :invoke
end