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 data when performing an action #23

Merged
merged 3 commits into from
Dec 3, 2015
Merged

allow data when performing an action #23

merged 3 commits into from
Dec 3, 2015

Conversation

jamesgorrie
Copy link

Simple - effective.
I wasn't 100% sure how to test for it - but happy to work through it with you to find out.

@jamesgorrie
Copy link
Author

@theefer Small hack.

@@ -209,15 +209,18 @@ export class Resource {
/**
* @return {Promise[Resource|Any]}
*/
// TODO: allow passing params and body
perform(name) {
Copy link
Contributor

Choose a reason for hiding this comment

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

You probably want to default parameters to {} else perform('foo') may throw.

Copy link
Author

Choose a reason for hiding this comment

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

Ah, I thought I had. Done now.

@theefer
Copy link
Contributor

theefer commented Dec 3, 2015

👍

theefer added a commit that referenced this pull request Dec 3, 2015
allow data when performing an action
@theefer theefer merged commit 8f6611b into master Dec 3, 2015
@theefer theefer deleted the action-data branch December 3, 2015 20:07
@theefer
Copy link
Contributor

theefer commented Dec 3, 2015

Published as 0.5.2.

@jamesgorrie
Copy link
Author

Thanks!

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