Skip to content

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.

2 participants