Gab Social. All are welcome.
This commit is contained in:
9
app/serializers/rest/list_serializer.rb
Normal file
9
app/serializers/rest/list_serializer.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class REST::ListSerializer < ActiveModel::Serializer
|
||||
attributes :id, :title
|
||||
|
||||
def id
|
||||
object.id.to_s
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user