Sha256: 4ba2374496ddefef3e8ab8c3c77ee78466cb072dfece9c2bc468b16befa432dc

Contents?: true

Size: 542 Bytes

Versions: 2

Compression:

Stored size: 542 Bytes

Contents

require "active_archive/version"
require "active_archive/configuration"
require "active_archive/table_definition"
require "active_archive/methods"
require "active_archive/scopes"
require "active_archive/base"

module ActiveArchive

  class << self
    attr_accessor :configuration
  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.configuration=(config)
    @configuration = config
  end

  def self.configure
    yield(configuration)
  end

end

ActiveRecord::Base.send(:include, ActiveArchive::Base)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_archive-1.0.0 lib/active_archive.rb
active_archive-0.1.0 lib/active_archive.rb