@@ -1589,7 +1589,7 @@ function DSHttpAdapterProvider() {
15891589 function find ( resourceConfig , id , options ) {
15901590 options = options || { } ;
15911591 return this . GET (
1592- DSUtils . makePath ( resourceConfig . baseUrl , resourceConfig . endpoint , id ) ,
1592+ DSUtils . makePath ( options . baseUrl || resourceConfig . baseUrl , resourceConfig . endpoint , id ) ,
15931593 options
15941594 ) ;
15951595 }
@@ -1602,23 +1602,23 @@ function DSHttpAdapterProvider() {
16021602 }
16031603 DSUtils . deepMixIn ( options , params ) ;
16041604 return this . GET (
1605- DSUtils . makePath ( resourceConfig . baseUrl , resourceConfig . endpoint ) ,
1605+ DSUtils . makePath ( options . baseUrl || resourceConfig . baseUrl , resourceConfig . endpoint ) ,
16061606 options
16071607 ) ;
16081608 }
16091609
16101610 function create ( resourceConfig , attrs , options ) {
16111611 options = options || { } ;
16121612 return this . POST (
1613- DSUtils . makePath ( resourceConfig . baseUrl , resourceConfig . endpoint ) ,
1613+ DSUtils . makePath ( options . baseUrl || resourceConfig . baseUrl , resourceConfig . endpoint ) ,
16141614 defaults . serialize ( attrs ) ,
16151615 options
16161616 ) ;
16171617 }
16181618
16191619 function update ( resourceConfig , id , attrs , options ) {
16201620 return this . PUT (
1621- DSUtils . makePath ( resourceConfig . baseUrl , resourceConfig . endpoint , id ) ,
1621+ DSUtils . makePath ( options . baseUrl || resourceConfig . baseUrl , resourceConfig . endpoint , id ) ,
16221622 defaults . serialize ( attrs ) ,
16231623 options
16241624 ) ;
@@ -1632,7 +1632,7 @@ function DSHttpAdapterProvider() {
16321632 }
16331633 DSUtils . deepMixIn ( options , params ) ;
16341634 return this . PUT (
1635- DSUtils . makePath ( resourceConfig . baseUrl , resourceConfig . endpoint ) ,
1635+ DSUtils . makePath ( options . baseUrl || resourceConfig . baseUrl , resourceConfig . endpoint ) ,
16361636 defaults . serialize ( attrs ) ,
16371637 options
16381638 ) ;
@@ -1641,7 +1641,7 @@ function DSHttpAdapterProvider() {
16411641 function destroy ( resourceConfig , id , options ) {
16421642 options = options || { } ;
16431643 return this . DEL (
1644- DSUtils . makePath ( resourceConfig . baseUrl , resourceConfig . endpoint , id ) ,
1644+ DSUtils . makePath ( options . baseUrl || resourceConfig . baseUrl , resourceConfig . endpoint , id ) ,
16451645 options
16461646 ) ;
16471647 }
@@ -1654,7 +1654,7 @@ function DSHttpAdapterProvider() {
16541654 }
16551655 DSUtils . deepMixIn ( options , params ) ;
16561656 return this . DEL (
1657- DSUtils . makePath ( resourceConfig . baseUrl , resourceConfig . endpoint ) ,
1657+ DSUtils . makePath ( options . baseUrl || resourceConfig . baseUrl , resourceConfig . endpoint ) ,
16581658 options
16591659 ) ;
16601660 }
@@ -1664,7 +1664,7 @@ function DSHttpAdapterProvider() {
16641664module . exports = DSHttpAdapterProvider ;
16651665
16661666} , { } ] , 32 :[ function ( require , module , exports ) {
1667- var errorPrefix = 'DS.create(resourceName, attrs): ' ;
1667+ var errorPrefix = 'DS.create(resourceName, attrs[, options] ): ' ;
16681668
16691669/**
16701670 * @doc method
@@ -1675,7 +1675,7 @@ var errorPrefix = 'DS.create(resourceName, attrs): ';
16751675 *
16761676 * ## Signature:
16771677 * ```js
1678- * DS.create(resourceName, attrs)
1678+ * DS.create(resourceName, attrs[, options] )
16791679 * ```
16801680 *
16811681 * ## Example:
0 commit comments