about summary refs log tree commit diff
path: root/app/serializers/rest/rule_serializer.rb
blob: fc925925a98d95a3de3e244ec9e6372e04942bc0 (plain) (blame)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

class REST::RuleSerializer < ActiveModel::Serializer
  attributes :id, :text

  def id
    object.id.to_s
  end
end