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

Fixed around callback with lambda example #7535

Closed
wants to merge 1 commit into from

Conversation

aaronrenner
Copy link
Contributor

The existing example of using yield in an around callback lambda throws
a "no block given (yield)" error. After some troubleshooting, I came up
with this example that works in a lambda.

The existing example of using yield in an around callback lambda throws
a "no block given (yield)" error. After some troubleshooting, I came up
with this example that works in a lambda.
@steveklabnik
Copy link
Member

Neat! However, this should really be targeted at master, not 3-2-stable. Or at least, both. Also, feel free to push changes to lifo/docrails in the future as well.

@josevalim
Copy link
Contributor

Thanks @aaronrenner . Since this is a documentation change, please push it straight to http://github.com/lifo/docrails! And please push it to master, after all, Rails 4 is coming sooner than later. :)

@josevalim josevalim closed this Sep 6, 2012
aaronrenner added a commit to aaronrenner/rails that referenced this pull request Sep 6, 2012
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

3 participants