aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorNiels Ganser <niels@herimedia.com>2009-03-06 14:40:54 +0000
committerPratik Naik <pratiknaik@gmail.com>2009-03-06 14:41:13 +0000
commitc67d25e3c4e636d7c94909a7398231a634accf46 (patch)
tree254deda1b6961b476b505d9b8f0fe65bb637ef48 /activesupport/lib/active_support
parente97180c273ada9b252ddf42d340d2947a509cb26 (diff)
downloadrails-c67d25e3c4e636d7c94909a7398231a634accf46.tar.gz
rails-c67d25e3c4e636d7c94909a7398231a634accf46.tar.bz2
rails-c67d25e3c4e636d7c94909a7398231a634accf46.zip
Ensure ActiveSupport::Memoizable respects private methods. [#2138 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/memoizable.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/memoizable.rb b/activesupport/lib/active_support/memoizable.rb
index 952b4d8063..71cfe61739 100644
--- a/activesupport/lib/active_support/memoizable.rb
+++ b/activesupport/lib/active_support/memoizable.rb
@@ -89,6 +89,10 @@ module ActiveSupport
end # end
end # end
end # end
+ #
+ if private_method_defined?(#{original_method.inspect}) # if private_method_defined?(:_unmemoized_mime_type)
+ private #{symbol.inspect} # private :mime_type
+ end # end
EOS
end
end