crummy
crummy copied to clipboard
fix overwriting lambda with evaluated value
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.
Would you be able to add a regression test for this as well, thanks!