Skip to content

Commit

Permalink
fixed rendering to support latest client for swagger-api#932
Browse files Browse the repository at this point in the history
  • Loading branch information
fehguy committed Feb 12, 2015
1 parent 217bd99 commit 2337d64
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/coffeescript/view/ResourceView.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ class ResourceView extends Backbone.View
@model.description = null

render: ->
$(@el).html(Handlebars.templates.resource(@model))

methods = {}

if @model.description
if @model.description?
@model.summary = @model.description

$(@el).html(Handlebars.templates.resource(@model))

# Render each operation
for operation in @model.operationsArray
counter = 0
Expand Down

0 comments on commit 2337d64

Please sign in to comment.