haruska / ninja-decorators

before_filter, after_filter, and around_filter for ruby without rails

Home Page:http://realultimatepower.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fixed shared class variable in decorator code

nirvdrum opened this issue · comments

The cached deferred list of method names is a class variable that ends up being shared by all classes it is mixed into. This should be a class instance variable in order to avoid inadvertent overwriting of decorated methods.

Turns out I had already fixed this. Oops.