Closed jasonkliu closed 10 years ago
Couple options here: https://stackoverflow.com/questions/9132197/ @caseywatts @mnquintana Any preferred option?
require 'memoist'
extend ActiveSupport::Memoizable -> extend Memoist
ActiveSupport::Deprecation.silence { extend ActiveSupport::Memoizable }
||=
, something like this commitMethod 2 is probably not the best idea. Nominating Method 1 for right now, then possibly upgrade to Method 3. It only affects one file, so either should not be too difficult.
DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and will be removed in future releases,simply use Ruby memoization pattern instead. (called from extend at app/models/user.rb:42)