Skip to content

eagerInject/eagerEject should default to definition's options #185

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

Closed
elado opened this issue Sep 22, 2014 · 1 comment
Closed

eagerInject/eagerEject should default to definition's options #185

elado opened this issue Sep 22, 2014 · 1 comment
Assignees
Milestone

Comments

@elado
Copy link

elado commented Sep 22, 2014

I want to be able to define eagerInject/eagerEject on the resource deinition:

Article = DS.defineResource({
    name: 'article',
    eagerInject: true,
    eagerEject: true
})

Currently the create/destroy methods take the option only from the caller Article.destroy(id, { eagerEject: true })

@jmdobry
Copy link
Member

jmdobry commented Sep 22, 2014

Yeah, I should have added that to the global and resource configuration.

@jmdobry jmdobry added this to the 1.0.0-rc.2 milestone Sep 22, 2014
@jmdobry jmdobry self-assigned this Sep 22, 2014
@jmdobry jmdobry added the done label Sep 22, 2014
@jmdobry jmdobry removed the ready label Sep 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants