From fb08e334d61b1706db754733b209075b0154b57e Mon Sep 17 00:00:00 2001 From: Andrew Kaspick Date: Thu, 23 Sep 2010 16:48:35 -0500 Subject: memoized protected methods should remain protected Signed-off-by: Santiago Pastorino --- activesupport/lib/active_support/memoizable.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/memoizable.rb b/activesupport/lib/active_support/memoizable.rb index 9fb506fea1..0a7bcd5bb8 100644 --- a/activesupport/lib/active_support/memoizable.rb +++ b/activesupport/lib/active_support/memoizable.rb @@ -95,6 +95,8 @@ module ActiveSupport # if private_method_defined?(#{original_method.inspect}) # if private_method_defined?(:_unmemoized_mime_type) private #{symbol.inspect} # private :mime_type + elsif protected_method_defined?(#{original_method.inspect}) # elsif protected_method_defined?(:_unmemoized_mime_type) + protected #{symbol.inspect} # protected :mime_type end # end EOS end -- cgit v1.2.3