Story: export tags in json view

closes #143
This commit is contained in:
joshua stein 2014-04-03 10:23:37 -05:00
parent eec85db1f8
commit 9848cf5e47

View file

@ -99,6 +99,7 @@ class Story < ActiveRecord::Base
h[:description] = markeddown_description
h[:comments_url] = comments_url
h[:submitter_user] = user
h[:tags] = self.tags.map{|t| t.tag }.sort
if options && options[:with_comments]
h[:comments] = options[:with_comments]