Class: Ofx::Generators::EjectGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Ofx::Generators::EjectGenerator
- Defined in:
- lib/generators/ofx/eject_generator.rb
Overview
Ejects OFX field mappings into the Rails application so they can be customized.
Creates config/initializers/ofx_mappings.yml with the gem’s default field mappings. The file is auto-detected and loaded by the OFX gem on boot —no initializer or OFX.configure call is needed.
Instance Method Summary collapse
Instance Method Details
#eject_mappings ⇒ Object
20 21 22 |
# File 'lib/generators/ofx/eject_generator.rb', line 20 def eject_mappings copy_file 'ofx_mappings.yml', 'config/initializers/ofx_mappings.yml' end |