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

README: Document passing friendship to after callbacks #3

Merged
merged 1 commit into from
Jun 19, 2014
Merged

README: Document passing friendship to after callbacks #3

merged 1 commit into from
Jun 19, 2014

Conversation

ericboehs
Copy link
Contributor

Documentation doesn't mention how to access the friend being followed/unfollowed from after callbacks. I document my adventures on how I discovered this here.

By the way, the value is returned when creating the friendship. Therefore, value will be nil for before callbacks. This is because it is being called before the friendship creation code is ever ran.

Also, inline code documentation should probably be updated too.

@ericboehs ericboehs changed the title README: Document passing friendship to callbacks README: Document passing friendship to after callbacks Jun 19, 2014
@thejchap
Copy link
Owner

This is awesome, had no idea you could do that haha 👍

Wanna throw some inline comments just clarifying that you can also use the sym if you don't care about the object being passed in the callback and/or adding an example? http://rdoc.info/github/thejchap/popular/frames

Looks good. Thanks!

@ericboehs
Copy link
Contributor Author

I added inline documentation. Let me know if I missed anything.

Documentation doesn't mention how to access the friend being followed/unfollowed from `after` callbacks. I document my adventures on how I discovered this [here](https://gist.github.com/ericboehs/ccc6b78349fc32e5f1bb).

By the way, the `value` is returned when creating the friendship. Therefore, `value` will be `nil` for before callbacks. This is because it is being called *before* the friendship code is ever ran.
thejchap added a commit that referenced this pull request Jun 19, 2014
README: Document passing friendship to after callbacks
@thejchap thejchap merged commit 9c0b63c into thejchap:master Jun 19, 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