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

fix overwriting lambda with evaluated value #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aserafin
Copy link

This line

name = name.call(instance) if name.is_a?(Proc) 

overwrites procedure passed as name parameter to add_crumb call so it is invoked only once and any subsequent calls to controller using this method will return evaluated value.

@andrew
Copy link
Contributor

andrew commented Dec 17, 2013

Would you be able to add a regression test for this as well, 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