haruska / ninja-decorators

before_filter, after_filter, and around_filter for ruby without rails
http://realultimatepower.net/
6 stars 0 forks source link

Fixed shared class variable in decorator code #3

Closed nirvdrum closed 15 years ago

nirvdrum commented 15 years ago

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.

nirvdrum commented 15 years ago

Turns out I had already fixed this. Oops.