So, in Rails 3.2 ActiveSupport :: Memoizable is deprecated.
The message says:
DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and will be removed in future releases,simply use Ruby memoization pattern instead.
It refers to the "Ruby memoization pattern" (singular), as if we all knew one pattern and referred to ...
I assume they mean something like:
def my_method @my_method ||=
or
def my_method return @my_method if defined?(@my_method) @my_method =
Is there anything else I missed?
ruby ruby-on-rails-3 memoization activesupport
bodacious Feb 03 '12 at 16:45 2012-02-03 16:45
source share