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

Add explicit operations list everywhere #600

Merged
merged 1 commit into from
Oct 18, 2017

Conversation

brandur
Copy link
Contributor

@brandur brandur commented Oct 18, 2017

Makes the operations argument to nested_resource_class_methods required and adds explicit lists to any invocations that were missing one.

The impetus here is that I think it's more easily digestible if each call site is explicit about what operations it supports and therefore which methods it's about to create on the class.

r? @ob-stripe This is definitely the pedant in me, but I kind of like seeing the explicit list of operations for each of these, and most call sites had to define an explicit list from the beginning anyway sine they don't support all operations. Thoughts?

Makes the `operations` argument to `nested_resource_class_methods`
required and adds explicit lists to any invocations that were missing
one.

The impetus here is that I think it's more easily digestible if each
call site is explicit about what operations it supports and therefore
which methods it's about to create on the class.
@ob-stripe
Copy link
Contributor

Yeah, that's fine!

👍

@brandur-stripe brandur-stripe merged commit 987bbd0 into master Oct 18, 2017
@brandur-stripe brandur-stripe deleted the brandur-explicit-operations branch October 18, 2017 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants