Class: MoneyAttribute::Generators::InitializerGenerator Private

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Rails generator that installs the money_attribute initializer.

Examples:

rails generate money_attribute:initializer

Instance Method Summary collapse

Instance Method Details

#copy_initializervoid

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Copies the initializer template into the application.



20
21
22
# File 'lib/generators/money_attribute/initializer_generator.rb', line 20

def copy_initializer
  copy_file 'money_attribute.rb', 'config/initializers/money_attribute.rb'
end