1
0

marker_serializer.rb 240 B

12345678910111213
  1. # frozen_string_literal: true
  2. class REST::MarkerSerializer < ActiveModel::Serializer
  3. attributes :last_read_id, :version, :updated_at
  4. def last_read_id
  5. object.last_read_id.to_s
  6. end
  7. def version
  8. object.lock_version
  9. end
  10. end