lib/paper_trail/reifier.rb
def reify_has_one_associations(transaction_id, model, options = {})
        associations = model.class.reflect_on_all_associations(:has_one)
        each_enabled_association(associations) do |assoc|
          Reifiers::HasOne.reify(assoc, model, options, transaction_id)
        end
      end
# Restore the `model`'s has_one associations as they were when this
# version was superseded by the next (because that's what the user was
# looking at when they made the change).
# @api private
Restore the `model`'s has_one associations as they were when this
version was superseded by the next (because that's what the user was
looking at when they made the change).
Restore the ` model ` ' s has_one associations as they were when this version was superseded by the next ( because that ' s what the user was looking at when they made the change ) .
def reify_has_one_associations(transaction_id, model, options = {})
        associations = model.class.reflect_on_all_associations(:has_one)
        each_enabled_association(associations) do |assoc|
          Reifiers::HasOne.reify(assoc, model, options, transaction_id)
        end
      end
def reify_has_one_associations ( transaction_id , model , options = { } ) associations = model . class . reflect_on_all_associations ( :has_one ) each_enabled_association ( associations ) do | assoc | Reifiers :: HasOne . reify ( assoc , model , options , transaction_id ) end end
Restore the `model`'s has_one associations as they were when this
version was superseded by the next (because that's what the user was
looking at when they made the change).
Restore the ` model ` ' s has_one associations as they were when this version was superseded by the next ( because that ' s what the user was looking at when they made the change ) .
transaction_id
model
options
api
None