lib/paper_trail/record_trail.rb
# Returns an object which can be assigned to the `object` attribute of a
# nascent version record. If the `object` column is a postgres `json`
# column, then a hash can be used in the assignment, otherwise the column
# is a `text` column, and we must perform the serialization here, using
# `PaperTrail.serializer`.
# @api private
Returns an object which can be assigned to the `object` attribute of a
nascent version record.
Returns an object which can be assigned to the ` object ` attribute of a nascent version record .
def recordable_object
      if @record.class.paper_trail.version_class.object_col_is_json?
        object_attrs_for_paper_trail
      else
        PaperTrail.serializer.dump(object_attrs_for_paper_trail)
      end
    end
def recordable_object if @record . class . paper_trail . version_class . object_col_is_json? object_attrs_for_paper_trail else PaperTrail . serializer . dump ( object_attrs_for_paper_trail ) end end
Returns an object which can be assigned to the `object` attribute of a
nascent version record.
Returns an object which can be assigned to the ` object ` attribute of a nascent version record .
api
None