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

Make association methods writable. #451

Closed
wants to merge 2 commits into from

Conversation

benjie
Copy link
Contributor

@benjie benjie commented Feb 16, 2014

For similar reasons to #296, I want to be able to stub out these methods in tests.

@@ -155,7 +155,8 @@ function extendInstance(Model, Instance, Driver, association, opts, createInstan
});
return this;
},
enumerable: false
enumerable: false,
writable: false
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are these meant to be false?

@benjie
Copy link
Contributor Author

benjie commented Feb 18, 2014

@dxg ❗ Can't believe I didn't notice that.

Please squash these two commits if you merge.

@dxg dxg closed this in 9f335e9 Feb 18, 2014
@dxg
Copy link
Collaborator

dxg commented Feb 18, 2014

Hmm, squashing had the unexpected consequence of putting the commit under my name.
I think next time, we'll go the author git commit --amend and git push <branch name> --force path.
Thanks for the PR!

@benjie
Copy link
Contributor Author

benjie commented Feb 18, 2014

👍

@benjie benjie deleted the writable-associations branch February 18, 2014 11:30
@dxg dxg added this to the v2.1.4 milestone Feb 24, 2014
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