lib/paper_trail/record_trail.rb
# Utility method for reifying. Anything executed inside the block will
# appear like a new record.
Utility method for reifying. Anything executed inside the block will
appear like a new record.
Utility method for reifying . Anything executed inside the block will appear like a new record .
def appear_as_new_record
      @record.instance_eval {
        alias :old_new_record? :new_record?
        alias :new_record? :present?
      }
      yield
      @record.instance_eval { alias :new_record? :old_new_record? }
    end
def appear_as_new_record @record . instance_eval { alias :old_new_record? :new_record? alias :new_record? :present? } yield @record . instance_eval { alias :new_record? :old_new_record? } end
Utility method for reifying.
Utility method for reifying .