lib/paper_trail/reifier.rb
# Restore the `model`'s has_many associations as they were at version_at
# timestamp We lookup the first child versions after version_at timestamp or
# in same transaction.
Restore the `model`'s has_many associations as they were at version_at
timestamp We lookup the first child versions after version_at timestamp or
in same transaction.
Restore the ` model ` ' s has_many associations as they were at version_at timestamp We lookup the first child versions after version_at timestamp or in same transaction .
def reify_has_manys(transaction_id, model, options = {})
        assoc_has_many_through, assoc_has_many_directly =
          model.class.reflect_on_all_associations(:has_many).
            partition { |assoc| assoc.options[:through] }
        reify_has_many_directly(transaction_id, assoc_has_many_directly, model, options)
        reify_has_many_through(transaction_id, assoc_has_many_through, model, options)
      end
def reify_has_manys ( transaction_id , model , options = { } ) assoc_has_many_through , assoc_has_many_directly = model . class . reflect_on_all_associations ( :has_many ) . partition { | assoc | assoc . options [ :through ] } reify_has_many_directly ( transaction_id , assoc_has_many_directly , model , options ) reify_has_many_through ( transaction_id , assoc_has_many_through , model , options ) end
Restore the `model`'s has_many associations as they were at version_at
timestamp We lookup the first child versions after version_at timestamp or
in same transaction.
Restore the ` model ` ' s has_many associations as they were at version_at timestamp We lookup the first child versions after version_at timestamp or in same transaction .
transaction_id
<not_specific>
model
<not_specific>
options
<not_specific>