marker_serializer.rb 344 B

123456789101112131415
  1. # frozen_string_literal: true
  2. class REST::MarkerSerializer < ActiveModel::Serializer
  3. # Please update `app/javascript/mastodon/api_types/markers.ts` when making changes to the attributes
  4. attributes :last_read_id, :version, :updated_at
  5. def last_read_id
  6. object.last_read_id.to_s
  7. end
  8. def version
  9. object.lock_version
  10. end
  11. end