joelmoss/bitmask_attributes — pull request #12 by buffpojken (2012-03-28 19:30:51+00:00)
Title: Fix string-interpolated class-name lookup

I've patched the string-based class_eval to use global namespace lookup to prevent bitmask_attributes to hook into the wrong class. An example of this occuring is when using bitmask_attributes in a class called Event, and at the same time using the statemachine Transitions (which defines Transitions::Event). Since class_eval will look inside-out - which will hook into the wrong class!