Sha256: 03a43d9c0879527a0bf3ceecc8a97ace594224422d4778280f824b8d91ab6aba

Contents?: true

Size: 455 Bytes

Versions: 10

Compression:

Stored size: 455 Bytes

Contents

require "active_support/concern"

module PaperTrail
  # Functionality for `PaperTrail::VersionAssociation`. Exists in a module
  # for the same reasons outlined in version_concern.rb.
  module VersionAssociationConcern
    extend ::ActiveSupport::Concern

    included do
      belongs_to :version

      if PaperTrail.active_record_protected_attributes?
        attr_accessible :version_id, :foreign_key_name, :foreign_key_id
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/paper_trail-5.2.3/lib/paper_trail/version_association_concern.rb
paper_trail-6.0.0 lib/paper_trail/version_association_concern.rb
paper_trail-5.2.3 lib/paper_trail/version_association_concern.rb
paper_trail-5.2.2 lib/paper_trail/version_association_concern.rb
paper_trail-5.2.1 lib/paper_trail/version_association_concern.rb
paper_trail-5.2.0 lib/paper_trail/version_association_concern.rb
paper_trail-5.1.1 lib/paper_trail/version_association_concern.rb
paper_trail-5.1.0 lib/paper_trail/version_association_concern.rb
paper_trail-5.0.1 lib/paper_trail/version_association_concern.rb
paper_trail-5.0.0 lib/paper_trail/version_association_concern.rb