Sha256: 1fbef8e3508562ac8efb07438734b5ee8cb827b87da250fee9ee02a8f53c1560
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
# frozen_string_literal: true module ActiveReport class Configuration attr_accessor :csv_force_encoding, :csv_options, :import_adapter, :import_options def initialize @csv_force_encoding = true @csv_options = { external_encoding: 'ISO-8859-1', internal_encoding: 'UTF-8' } @import_adapter = 'mysql2_adapter' @import_options = { validate: false, on_duplicate_key_ignore: true } end end def self.configuration @configuration ||= Configuration.new end def self.configuration=(config) @configuration = config end def self.configure yield(configuration) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_report-5.4.0 | lib/active_report/configuration.rb |