Skip to content

Commit

Permalink
Changed templates formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelMadero committed Sep 26, 2012
1 parent 5f7888d commit a7e86f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/scaffold/controller.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var <%= names.constructor.plural %> = function () {
, <%= names.property.singular %> = geddy.model.<%= names.constructor.singular %>.create(params);
<%= names.property.singular %>.save(function(err, data) {
if(err) {
if (err) {
params.errors = err;
self.transfer('add');
} else {
Expand Down Expand Up @@ -56,7 +56,7 @@ var <%= names.constructor.plural %> = function () {
<%= names.property.singular %>.updateAttributes(params);
<%= names.property.singular %>.save(function(err, data) {
if(err) {
if (err) {
params.errors = err;
self.transfer('edit');
} else {
Expand All @@ -70,7 +70,7 @@ var <%= names.constructor.plural %> = function () {
var self = this;
geddy.model.<%= names.constructor.singular %>.remove(params.id, function(err) {
if(err) {
if (err) {
params.errors = err;
self.transfer('edit');
} else {
Expand Down

0 comments on commit a7e86f0

Please sign in to comment.