Notes posted by treetoad
RSS feed
treetoad -
June 1, 2009 - (>= v2.2.1)
2 thanks
Further To: Memoize will not cache singleton methods
er…it will:
Code example
class PersonType < ActiveRecord::Base class << self # Add the mixin here: extend ActiveSupport::Memoizable def mister find_by_name('Mister') end memoize :mister end end