Class: DevisePaypal::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_localeObject



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

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

#show_readmeObject



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

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