zachinglis/crummy

When using translation in crumb name, it is not updated if the locale changes

bobbus opened this issue · 2 comments

I do not see where in the code the caching could happen but if I use a proc for the name of the crumb, it is only call the first time I need it, displaying wrong translation if I have changed locale since the first call.

Exemple :
add_crumb(lambda { |i| i.t(:home) }, :root_path)

I must add <% add_crumb t(:home), '/' %> in the application layout.

Sure but I think it could usefull in controller too