lib/paper_trail/reifier.rb
def reify_habtm_associations(transaction_id, model, options = {})
        model.class.reflect_on_all_associations(:has_and_belongs_to_many).each do |assoc|
          pt_enabled = assoc.klass.paper_trail.enabled?
          next unless model.class.paper_trail_save_join_tables.include?(assoc.name) || pt_enabled
          Reifiers::HasAndBelongsToMany.reify(pt_enabled, assoc, model, options, transaction_id)
        end
      end
# Reify all HABTM associations of `model`.
# @api private
Reify all HABTM associations of `model`.
Reify all HABTM associations of ` model ` .
def reify_habtm_associations(transaction_id, model, options = {})
        model.class.reflect_on_all_associations(:has_and_belongs_to_many).each do |assoc|
          pt_enabled = assoc.klass.paper_trail.enabled?
          next unless model.class.paper_trail_save_join_tables.include?(assoc.name) || pt_enabled
          Reifiers::HasAndBelongsToMany.reify(pt_enabled, assoc, model, options, transaction_id)
        end
      end
def reify_habtm_associations ( transaction_id , model , options = { } ) model . class . reflect_on_all_associations ( :has_and_belongs_to_many ) . each do | assoc | pt_enabled = assoc . klass . paper_trail . enabled? next unless model . class . paper_trail_save_join_tables . include? ( assoc . name ) || pt_enabled Reifiers :: HasAndBelongsToMany . reify ( pt_enabled , assoc , model , options , transaction_id ) end end
Reify all HABTM associations of `model`.
Reify all HABTM associations of ` model ` .
transaction_id
model
options
api
None