discourse/app/serializers/watched_word_serializer.rb

8 lines
148 B
Ruby
Raw Normal View History

class WatchedWordSerializer < ApplicationSerializer
attributes :id, :word, :action
def action
WatchedWord.actions[object.action]
end
end