gab-social/app/serializers/rest/shortcut_serializer.rb

11 lines
201 B
Ruby

# frozen_string_literal: true
class REST::ShortcutSerializer < ActiveModel::Serializer
attributes :id, :account_id, :created_at, :shortcut_type, :shortcut_id
def id
object.id.to_s
end
end