Class: Motr::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



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

def copy_initializer
  template "motr.rb", "config/initializers/motr.rb"
end

#copy_localeObject



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

def copy_locale
  copy_file "../../../config/locales/en.yml", "config/locales/motr.en.yml"
end

#show_post_install_notesObject



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

def show_post_install_notes
  readme "post_install" if behavior == :invoke
end