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

[FEAT BUGFIX] adds adapterOptions ability to model.reload() #5414

Merged
merged 1 commit into from
Apr 4, 2018

Conversation

runspired
Copy link
Contributor

Resolves #5373

wrappedAdapterOptions = {
adapterOptions: options.adapterOptions
};
}
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to support this here or should we always require users to set adapterOptions?

Copy link
Member

Choose a reason for hiding this comment

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

Nevermind this looks good. 👍

Copy link
Member

@bmac bmac left a comment

Choose a reason for hiding this comment

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

👍

reload(options) {
let wrappedAdapterOptions;

if (typeof options === 'object' && options !== null && options.adapterOptions) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rwjblue did you have a recommended way of making this more legible?

@runspired runspired merged commit e82e20f into emberjs:master Apr 4, 2018
@runspired runspired deleted the fix-reload-adapter-options branch April 4, 2018 21:39
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.

2 participants