This project is archived and is in readonly mode.

#2372 ✓resolved

Unabled to flush memoized values for private methods

Reported by Eric | March 29th, 2009 @ 11:55 PM | in 2.3.4

The attached test demonstrates the problem. The issue is when flushing methods is iterates over "methods" which does not include private methods (only public and protected). The solution might just be to change that code to be:

(methods + private_methods).each do |m| .... end

This would need to happen on both the flushing of the cache as well as the priming of the cache.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

Referenced by