mirror of
https://github.com/paper-trail-gem/paper_trail.git
synced 2022-11-09 11:33:19 -05:00
15 lines
323 B
Ruby
15 lines
323 B
Ruby
require 'active_support/concern'
|
|
|
|
module PaperTrail
|
|
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
|