Skip to content
This repository was archived by the owner on Jul 11, 2019. It is now read-only.

Commit d67625f

Browse files
committed
Remove backwards compatibility with Sails 0.9 per default, fixes #3
1 parent 2ba3885 commit d67625f

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

blueprints/find.js

+10-7
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,16 @@ module.exports = function findRecords( req, res ) {
3333
// Look up the model
3434
var Model = actionUtil.parseModel( req );
3535

36-
// If an `id` param was specified, use the findOne blueprint action
37-
// to grab the particular instance with its primary key === the value
38-
// of the `id` param. (mainly here for compatibility for 0.9, where
39-
// there was no separate `findOne` action)
40-
if ( actionUtil.parsePk( req ) ) {
41-
return require( './findone' )( req, res );
42-
}
36+
/* ENABLE if needed ( see https://github.com/mphasize/sails-ember-blueprints/issues/3 )
37+
* ----------------
38+
* If an `id` param was specified, use the findOne blueprint action
39+
* to grab the particular instance with its primary key === the value
40+
* of the `id` param. (mainly here for compatibility for 0.9, where
41+
* there was no separate `findOne` action)
42+
*/
43+
// if ( actionUtil.parsePk( req ) ) {
44+
// return require( './findone' )( req, res );
45+
// }
4346

4447
// Lookup for records that match the specified criteria
4548
var query = Model.find()

0 commit comments

Comments
 (0)