Story: export comment_count and score to json

This commit is contained in:
joshua stein 2012-12-17 18:19:19 -06:00
parent a4e5684994
commit cb5e1592b0

View file

@ -114,8 +114,10 @@ class Story < ActiveRecord::Base
:url,
:comments_url,
])
h[:submitter_user] = user
h[:score] = score
h[:comment_count] = comment_count
h[:description] = markeddown_description
h[:submitter_user] = user
h
end