matthewrudy / memoist

ActiveSupport::Memoizable with a few enhancements
MIT License
920 stars 99 forks source link

Fix undefined `memoized_methods` error raised when a parent class has not call `memoize` #68

Closed PikachuEXE closed 7 years ago

PikachuEXE commented 7 years ago

Fixes #51

The method memoized_methods is only defined when memoize method is called Thus memoized_methods method is absent in any class that contains no method call to memoize

So this PR just define the method on module extend