Class: MoneyAttribute::Generators::InitializerGenerator Private
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- MoneyAttribute::Generators::InitializerGenerator
- 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.
Instance Method Summary collapse
-
#copy_initializer ⇒ void
private
Copies the initializer template into the application.
Instance Method Details
#copy_initializer ⇒ void
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 |