Permalink
Browse files

FIXED - Custom route names (defined in controllers) are now able to l…

…ocate layout override file.
  • Loading branch information...
glesperance committed Mar 19, 2012
1 parent 2f7431d commit 9fe5618ccfa2419beba40ba1eef936f22d803bca
Showing with 2 additions and 1 deletion.
  1. +1 −0 lib/controller.js
  2. +1 −1 package.json
View
@@ -120,6 +120,7 @@ function buildWrapper(controller_info, method_func) {
var view_file = controller_info.get('view')
, layout_node = controller_info.parent.get('layout')
+ , __ = !layout_node && controller_info.parent.parent && (layout_node = controller_info.parent.parent.get('layout'))
, layout = (typeof layout_node !== 'undefined' ? layout_node.get('view') : true)
, oSend = res.send
View
@@ -2,7 +2,7 @@
"name": "rocket"
, "description": "The rapid development framework for node.js"
, "keywords": ["mvc", "model view controller", "comet","rapid development", "Rocket", "framework"]
-, "version": "0.2.0"
+, "version": "0.2.1"
, "homepage": "http://wavo.me"
, "repository":
{ "type" : "git"

0 comments on commit 9fe5618

Please sign in to comment.