This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/serializers/post_action_user_serializer.rb
2013-08-14 12:18:54 -04:00

21 lines
307 B
Ruby

class PostActionUserSerializer < BasicUserSerializer
attributes :id, :username, :avatar_template, :post_url
def id
object.user.id
end
def username
object.user.username
end
def avatar_template
object.user.avatar_template
end
def post_url
object.related_post_id
end
end