Skip to content
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

Merged
merged 2 commits into from
Jun 13, 2015

Conversation

bmac
Copy link
Member

@bmac bmac commented Jun 11, 2015

This pr also introduces a SnapshotRecordArray object to pass snapshots, adapterOptions and meta into the adapter findAll.

@@ -494,8 +494,8 @@ var Model = Ember.Object.extend(Ember.Evented, {

@method deleteRecord
*/
deleteRecord: function() {
this._internalModel.deleteRecord();
deleteRecord: function(options) {
Copy link
Member

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?

Copy link
Member Author

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.

@bmac bmac force-pushed the snapshot-array branch 2 times, most recently from 13000d1 to 4e73e0a Compare June 13, 2015 13:18
@bmac
Copy link
Member Author

bmac commented Jun 13, 2015

@igorT I have updated this pr.

@param {Object} meta
*/
function SnapshotRecordArray(snapshots, meta, adapterOptions) {
this.snapshots = snapshots;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this lazy

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@igorT
Copy link
Member

igorT commented Jun 13, 2015

looks great otherwise

Add a SnapshotRecordArray object used for passing snapshots, meta and adapterOptions to the adapter.
@bmac bmac mentioned this pull request Jun 13, 2015
13 tasks
igorT added a commit that referenced this pull request Jun 13, 2015
Allow the store to pass adapter options to the adapter
@igorT igorT merged commit f44a9f1 into emberjs:master Jun 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants