Sha256: 35c5527c3356b489716ebe9e9ce3d3db8efc609ed5f363549e40789517811517

Contents?: true

Size: 459 Bytes

Versions: 13

Compression:

Stored size: 459 Bytes

Contents

# frozen_string_literal: true

module ActiveArchive
  class Configuration

    attr_accessor :all_records_archivable, :dependent_record_window

    def initialize
      @all_records_archivable = false
      @dependent_record_window = 3.seconds
    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

13 entries across 13 versions & 1 rubygems

Version Path
active_archive-5.3.0 lib/active_archive/configuration.rb
active_archive-5.2.2 lib/active_archive/configuration.rb
active_archive-5.2.1 lib/active_archive/configuration.rb
active_archive-5.2.0 lib/active_archive/configuration.rb
active_archive-5.1.7 lib/active_archive/configuration.rb
active_archive-5.1.6 lib/active_archive/configuration.rb
active_archive-5.1.5 lib/active_archive/configuration.rb
active_archive-5.1.4 lib/active_archive/configuration.rb
active_archive-5.1.3 lib/active_archive/configuration.rb
active_archive-5.1.2 lib/active_archive/configuration.rb
active_archive-5.1.1 lib/active_archive/configuration.rb
active_archive-5.1.0 lib/active_archive/configuration.rb
active_archive-5.0.0 lib/active_archive/configuration.rb