So in Rails 3.2, ActiveSupport::Memoizable has been deprecated.
The message reads:
DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and will
Just an addition to the top answer, to memoize a class method use the following pattern:
class Foo class << self def bar @bar ||= begin # ... end end end end