lib/paper_trail/record_trail.rb
# Returns an object which can be assigned to the `object_changes`
# attribute of a nascent version record. If the `object_changes` 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_changes`
attribute of a nascent version record.
Returns an object which can be assigned to the ` object_changes ` attribute of a nascent version record .
def recordable_object_changes
      if @record.class.paper_trail.version_class.object_changes_col_is_json?
        changes
      else
        PaperTrail.serializer.dump(changes)
      end
    end
def recordable_object_changes if @record . class . paper_trail . version_class . object_changes_col_is_json? changes else PaperTrail . serializer . dump ( changes ) end end
Returns an object which can be assigned to the `object_changes`
attribute of a nascent version record.
Returns an object which can be assigned to the ` object_changes ` attribute of a nascent version record .
api
None