Class: Ofx::Generators::EjectGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
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.

Examples:

rails generate ofx:eject

Instance Method Summary collapse

Instance Method Details

#eject_mappingsObject



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