Skip to content
This repository was archived by the owner on Aug 6, 2021. It is now read-only.

Commit ea4d7e0

Browse files
committed
1 parent 694ea15 commit ea4d7e0

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

templates/api/blueprints/find.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ var util = require( 'util' ),
55
actionUtil = require( './_util/actionUtil' );
66

77
/**
8-
* Switch to enable sideloading records - this is a temporary workaround until we find a more general solution
8+
* Enable sideloading. Edit config/blueprints.js and add:
9+
* ember: {
10+
* sideload: true
11+
* }
12+
* Defaults to false.
13+
*
914
* @type {Boolean}
1015
*/
11-
var performSideload = false;
16+
var performSideload = (sails.config.blueprints.ember && sails.config.blueprints.ember.sideload);
1217

1318
/**
1419
* Find Records

templates/api/blueprints/findone.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ var util = require( 'util' ),
55
actionUtil = require( './_util/actionUtil' );
66

77
/**
8-
* Switch to enable sideloading records - this is a temporary workaround until we find a more general solution
8+
* Enable sideloading. Edit config/blueprints.js and add:
9+
* ember: {
10+
* sideload: true
11+
* }
12+
* Defaults to false.
13+
*
914
* @type {Boolean}
1015
*/
11-
var performSideload = false;
16+
var performSideload = (sails.config.blueprints.ember && sails.config.blueprints.ember.sideload);
1217

1318
/**
1419
* Find One Record

templates/api/blueprints/update.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@ var util = require( 'util' );
77
var _ = require( 'lodash' );
88

99
/**
10-
* Switch to enable sideloading records - this is a temporary workaround until we find a more general solution
10+
* Enable sideloading. Edit config/blueprints.js and add:
11+
* ember: {
12+
* sideload: true
13+
* }
14+
* Defaults to false.
15+
*
1116
* @type {Boolean}
1217
*/
13-
var performSideload = false;
18+
var performSideload = (sails.config.blueprints.ember && sails.config.blueprints.ember.sideload);
1419

1520
/**
1621
* Update One Record

0 commit comments

Comments
 (0)