restore accidentally deleted chunk

This commit is contained in:
Your Name
2013-04-22 16:17:54 -04:00
parent 8a02001a4f
commit b8114b9eb2

View File

@@ -150,6 +150,16 @@ if Backbone?
else
@get("title")
toJSON: ->
json_attributes = _.clone(@attributes)
_.extend(json_attributes, { title: @display_title(), body: @display_body() })
created_at_date: ->
new Date(@get("created_at"))
created_at_time: ->
new Date(@get("created_at")).getTime()
class @Comment extends @Content
urlMappers:
'reply': -> DiscussionUtil.urlFor('create_sub_comment', @id)