Class: Corkboard::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#install_initializerObject



7
8
9
# File 'lib/generators/corkboard/install_generator.rb', line 7

def install_initializer
  template "initializer.rb", "config/initializers/corkboard.rb"
end

#show_readmeObject



11
12
13
# File 'lib/generators/corkboard/install_generator.rb', line 11

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