diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-07-14 20:02:59 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-07-14 20:02:59 -0500 |
commit | 001c8beb4d0999a858a8b52ad511ee1251cc3517 (patch) | |
tree | 42e63d3b3b6b9782524d55147d690e4d16c176d0 /activesupport/lib/active_support/memoizable.rb | |
parent | dd41f66af577947ad420fbd2a44184344ad5c983 (diff) | |
download | rails-001c8beb4d0999a858a8b52ad511ee1251cc3517.tar.gz rails-001c8beb4d0999a858a8b52ad511ee1251cc3517.tar.bz2 rails-001c8beb4d0999a858a8b52ad511ee1251cc3517.zip |
memorize typo
Diffstat (limited to 'activesupport/lib/active_support/memoizable.rb')
-rw-r--r-- | activesupport/lib/active_support/memoizable.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/memoizable.rb b/activesupport/lib/active_support/memoizable.rb index c78fb0a793..65feca363a 100644 --- a/activesupport/lib/active_support/memoizable.rb +++ b/activesupport/lib/active_support/memoizable.rb @@ -5,8 +5,8 @@ module ActiveSupport end module ClassMethods - def memorize(symbol) - original_method = "_unmemorized_#{symbol}" + def memoize(symbol) + original_method = "_unmemoized_#{symbol}" alias_method original_method, symbol class_eval <<-EOS, __FILE__, __LINE__ def #{symbol} @@ -22,7 +22,7 @@ module ActiveSupport def freeze methods.each do |method| - if m = method.to_s.match(/^_unmemorized_(.*)/) + if m = method.to_s.match(/^_unmemoized_(.*)/) send(m[1]).freeze end end |