diff options
Diffstat (limited to 'app/serializers/rest/marker_serializer.rb')
-rw-r--r-- | app/serializers/rest/marker_serializer.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/serializers/rest/marker_serializer.rb b/app/serializers/rest/marker_serializer.rb new file mode 100644 index 000000000..2eaf3d507 --- /dev/null +++ b/app/serializers/rest/marker_serializer.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class REST::MarkerSerializer < ActiveModel::Serializer + attributes :last_read_id, :version, :updated_at + + def last_read_id + object.last_read_id.to_s + end + + def version + object.lock_version + end +end |