You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was the Rails bug I mentioned on IRC, but it turns out it's fully reproducible without Rails at all. The instance and class methods mimic a piece of class_inheritable_accessor and still demonstrate the problem.
This is due to Object#class using rb_class_real(). Since i turn the entire inheritance chain into iclasses the original class will no longer be a real class according to this test and so self.class will return Object instead of the actual class.
There are two ways to fix this: (1) prevent remix from turning classes into iclasses unless it really has to. (2) patch the Object#class method so it accepts iclasses inserted by remix as valid classes.
ruby 1.8.7 p249
This was the Rails bug I mentioned on IRC, but it turns out it's fully reproducible without Rails at all. The instance and class methods mimic a piece of
class_inheritable_accessor
and still demonstrate the problem.results in:
The text was updated successfully, but these errors were encountered: