Permalink
Browse files

oops presenter is a method

  • Loading branch information...
1 parent 23727f7 commit 8be88f3bc95c864e50cde35481f2e0229d846c28 Mark Evans committed Mar 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/generators/egg/view/templates/view.coffee.erb
@@ -6,4 +6,4 @@ class @<%= view_name.camelize %> extends egg.View
@render()
render: ->
- $(@elem).html JST['<%= underscore_name %>'](@presenter.toJSON())
+ $(@elem).html JST['<%= underscore_name %>'](@presenter().toJSON())

0 comments on commit 8be88f3

Please sign in to comment.