This project is archived and is in readonly mode.

#5695 ✓resolved
Andrew Kaspick

Properly memoize protected methods

Reported by Andrew Kaspick | September 23rd, 2010 @ 10:55 PM | in 2.3.10

class Test
  extend ActiveSupport::Memoizable

protected
  def test
  end
  memoize :test
end

Before this patch, the test method would be accessible as a public method. This patch properly makes the memoized method protected.

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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages