修复http.group被修改为小写的情况

This commit is contained in:
welefen 2014-08-29 17:35:30 +08:00
parent e41a5aaa1a
commit ecba6bf7d7

View File

@ -26,7 +26,7 @@ module.exports = Behavior(function(){
var path = templateFile.split(':');
var action = path.pop();
var controller = path.pop() || this.http.controller.toLowerCase();
var group = ucfirst(path.pop()) || this.http.group;
var group = ucfirst(path.pop() || this.http.group);
templateFile = [
VIEW_PATH, '/', group, '/',
controller,