app/serializers/emotion_serializer.rb
# == Schema Information
#
# Table name: emotions
#
# id :bigint not null, primary key
# category :integer default("positive")
# public :boolean default(FALSE)
# word :string
# created_at :datetime not null
# updated_at :datetime not null
#
class EmotionSerializer
include JSONAPI::Serializer
attributes :word, :category
end