crummy icon indicating copy to clipboard operation
crummy copied to clipboard

fix overwriting lambda with evaluated value

Open aserafin opened this issue 11 years ago • 1 comments

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.

aserafin avatar Dec 16 '13 21:12 aserafin

Would you be able to add a regression test for this as well, thanks!

andrew avatar Dec 17 '13 20:12 andrew