-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow the store to pass adapter options to the adapter #3310
Conversation
@@ -494,8 +494,8 @@ var Model = Ember.Object.extend(Ember.Evented, { | |||
|
|||
@method deleteRecord | |||
*/ | |||
deleteRecord: function() { | |||
this._internalModel.deleteRecord(); | |||
deleteRecord: function(options) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why does deleteRecord take options?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a mistake. I will undo this.
13000d1
to
4e73e0a
Compare
@igorT I have updated this pr. |
@param {Object} meta | ||
*/ | ||
function SnapshotRecordArray(snapshots, meta, adapterOptions) { | ||
this.snapshots = snapshots; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this lazy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
looks great otherwise |
Add a SnapshotRecordArray object used for passing snapshots, meta and adapterOptions to the adapter.
Allow the store to pass adapter options to the adapter
This pr also introduces a
SnapshotRecordArray
object to pass snapshots, adapterOptions and meta into the adapter findAll.