Sha256: a6669a02b3a1a08aecce270b976dbd69aaf38c7fc6738d5d163ee5167129bbdc

Contents?: true

Size: 760 Bytes

Versions: 3

Compression:

Stored size: 760 Bytes

Contents

require 'active_support/configurable'

module MasterDataTool
  class Config
    include ActiveSupport::Configurable

    config_accessor :master_data_dir
    config_accessor :dump_ignore_tables
    config_accessor :dump_ignore_columns
    config_accessor :default_import_options
    config_accessor :logger
    config_accessor :preload_associations
    config_accessor :eager_load_associations

    def initialize
      self.master_data_dir = nil
      self.dump_ignore_tables = %w[]
      self.dump_ignore_columns = %w[]
      self.default_import_options = {}
      self.preload_associations = {} # key: Class, value: associations
      self.eager_load_associations = {} # key: Class, value: associations
      self.logger = Logger.new(nil)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
master_data_tool-0.19.1 lib/master_data_tool/config.rb
master_data_tool-0.19.0 lib/master_data_tool/config.rb
master_data_tool-0.18.0 lib/master_data_tool/config.rb