Sha256: 4f7244647f8e6448ea8bb6e57ce0c68c4e58d65797c5319ec1bf911e8cd28b4f
Contents?: true
Size: 1.9 KB
Versions: 1
Compression:
Stored size: 1.9 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" module PaperTrailAssociationTracking def self.version VERSION::STRING end def self.gem_version ::Gem::Version.new(VERSION::STRING) 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 module VersionConcern include ::PaperTrailAssociationTracking::VersionConcern end end # Require frameworks if defined?(::Rails) # Rails module is sometimes defined by gems like rails-html-sanitizer # so we check for presence of Rails.application. if defined?(::Rails.application) require "paper_trail_association_tracking/frameworks/rails" else ::Kernel.warn('PaperTrail has been loaded too early, before rails is loaded. This can happen when another gem defines the ::Rails namespace, then PT is loaded, all before rails is loaded. You may want to reorder your Gemfile, or defer the loading of PT by using `require: false` and a manual require elsewhere.') end else require "paper_trail_association_tracking/frameworks/active_record" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
paper_trail-association_tracking-0.0.1 | lib/paper_trail-association_tracking.rb |