Skip to content

Commit dc05cb7

Browse files
committed
Merge branch 'master' of github.com:balderdashy/sails
2 parents c037929 + ec01c76 commit dc05cb7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/hooks/blueprints/actionUtil.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ module.exports = {
228228
}
229229

230230
// Prune params which aren't fit to be used as `values`
231-
values = req.params.all();
231+
var values = req.params.all();
232232

233233
// Omit built-in runtime config (like query modifiers)
234234
values = _.omit(values, blacklist || []);

lib/hooks/blueprints/actions/populate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = function expand(req, res) {
5151
.exec(function found(err, matchingRecord) {
5252
if (err) return res.serverError(err);
5353
if (!matchingRecord) return res.notFound('No record found with the specified id.');
54-
if (!matchingRecord[relation]) return res.notFound(util.format('Specified record (%s) is missing relation `%s`', parentId, alias));
54+
if (!matchingRecord[relation]) return res.notFound(util.format('Specified record (%s) is missing relation `%s`', parentPk, relation));
5555

5656
// Subcribe to instance, if relevant
5757
// TODO: only subscribe to populated attribute- not the entire model

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"node-uuid": "~1.4.0",
4545
"ejs-locals": "~1.0.2",
4646
"glob": "~3.2.9",
47-
"i18n": "~0.4.1",
47+
"i18n": "~0.5.0",
4848
"sails-generate": "~0.10.2",
4949
"sails-build-dictionary": "~0.10.1",
5050
"grunt-cli": "~0.1.11",
@@ -60,7 +60,7 @@
6060
"grunt-contrib-watch": "~0.5.3",
6161
"grunt-contrib-uglify": "~0.4.0",
6262
"grunt-contrib-cssmin": "~0.9.0",
63-
"grunt-contrib-less": "~0.11.0",
63+
"grunt-contrib-less": "0.11.1",
6464
"grunt-contrib-coffee": "~0.10.1",
6565
"grunt-sync": "~0.0.4",
6666
"express3-handlebars": "~0.5.0",

0 commit comments

Comments
 (0)