Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Properly memoize protected methods

#5695
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.

Reported by Andrew Kaspick · September 23rd, 2010 @ 10:55 PM

State: resolved
Milestone: 2.3.10
Assigned to: Michael Koziarski Michael Koziarski
Importance: Low

Activity

  1. Andrew Kaspick
    Andrew Kaspick

    This patch needs to be backported to rails 2.3.x as the issue exists there as well. Do I need to provide an additional patch for that branch as well?

    September 23rd, 2010 @ 10:56 PM

  2. Andrew Kaspick
  3. Santiago Pastorino
    Santiago Pastorino
    • State changed from new to open
    • Milestone set to 2.3.10
    • Assigned user set to Michael Koziarski
    • Importance changed from to Low

    September 25th, 2010 @ 12:34 AM

  4. Michael Koziarski
    Michael Koziarski
    • State changed from open to resolved

    September 26th, 2010 @ 11:52 PM