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

10 lines
191 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class REST::PromotionSerializer < ActiveModel::Serializer
attributes :status_id, :timeline_id, :position
2019-09-03 22:54:18 +01:00
def status_id
object.status_id.to_s
end
end