Class: OFX::Generators::EjectGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/ofx_kit/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.

Example

rails generate ofx_kit:eject

Instance Method Summary collapse

Instance Method Details

#eject_mappingsObject



22
23
24
# File 'lib/generators/ofx_kit/eject_generator.rb', line 22

def eject_mappings
  copy_file 'ofx_mappings.yml', 'config/initializers/ofx_mappings.yml'
end