This repository was archived by the owner on Aug 6, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +21
-6
lines changed Expand file tree Collapse file tree 3 files changed +21
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -7,10 +7,15 @@ var util = require( 'util' );
77var _ = 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
You can’t perform that action at this time.
0 commit comments