Permalink
Browse files

Changed templates formatting

  • Loading branch information...
1 parent 6e7d320 commit 5f7888d9cc63314a985cf8cd1f4535f506271249 @MiguelMadero committed Sep 26, 2012
Showing with 9 additions and 3 deletions.
  1. +9 −3 templates/scaffold/controller.ejs
View
12 templates/scaffold/controller.ejs
@@ -27,7 +27,9 @@ var <%= names.constructor.plural %> = function () {
if(err) {
params.errors = err;
self.transfer('add');
- } else self.redirect({controller: self.name});
+ } else {
+ self.redirect({controller: self.name});
+ }
});
};
@@ -57,7 +59,9 @@ var <%= names.constructor.plural %> = function () {
if(err) {
params.errors = err;
self.transfer('edit');
- } else self.redirect({controller: self.name});
+ } else {
+ self.redirect({controller: self.name});
+ }
});
});
};
@@ -69,7 +73,9 @@ var <%= names.constructor.plural %> = function () {
if(err) {
params.errors = err;
self.transfer('edit');
- } else self.redirect({controller: self.name});
+ } else {
+ self.redirect({controller: self.name});
+ }
});
};
<% } %>

0 comments on commit 5f7888d

Please sign in to comment.