Sha256: bcdd8740c1234dd8ec86ae66d26a743ed7a138d5f6e9c933b0d3c9455a77ea86

Contents?: true

Size: 1.42 KB

Versions: 2

Compression:

Stored size: 1.42 KB

Contents

# frozen_string_literal: true

require 'paper_trail'
require "paper_trail_association_tracking/config"
require "paper_trail_association_tracking/model_config"
require "paper_trail_association_tracking/reifier"
require "paper_trail_association_tracking/record_trail"
require "paper_trail_association_tracking/request"
require "paper_trail_association_tracking/paper_trail"
require "paper_trail_association_tracking/version_concern"

if defined?(Rails)
  require "paper_trail/frameworks/active_record"
  require "paper_trail_association_tracking/frameworks/rails"
elsif defined?(ActiveRecord)
  require "paper_trail/frameworks/active_record"
  require "paper_trail_association_tracking/frameworks/active_record"
end

module PaperTrailAssociationTracking
  def self.version
    VERSION
  end

  def self.gem_version
    ::Gem::Version.new(VERSION)
  end
end

module PaperTrail
  class << self
    prepend ::PaperTrailAssociationTracking::PaperTrail::ClassMethods
  end

  class Config
    prepend ::PaperTrailAssociationTracking::Config
  end

  class ModelConfig
    prepend ::PaperTrailAssociationTracking::ModelConfig
  end

  class RecordTrail
    prepend ::PaperTrailAssociationTracking::RecordTrail
  end

  module Reifier
    class << self
      prepend ::PaperTrailAssociationTracking::Reifier::ClassMethods
    end
  end

  module Request
    class << self
      prepend ::PaperTrailAssociationTracking::Request::ClassMethods
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
paper_trail-association_tracking-2.2.1 lib/paper_trail-association_tracking.rb
paper_trail-association_tracking-2.2.0 lib/paper_trail-association_tracking.rb