Skip to content

Commit

Permalink
Add CircleSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
noellabo committed Sep 5, 2020
1 parent a6121a1 commit 65e2b0c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/serializers/rest/circle_serializer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

class REST::CircleSerializer < ActiveModel::Serializer
attributes :id, :title

def id
object.id.to_s
end
end

0 comments on commit 65e2b0c

Please sign in to comment.