Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module MyModule
- def some_method; super; end
- end
- class MyBaseClass; end
- class MySubClass < MyBaseClass;
- include MyModule
- end
- # To trigger this bug, we must include the module in the base class after
- # the module has already been included in the subclass. If we move this line
- # above the subclass declaration, this bug will not occur.
- MyBaseClass.send(:include, MyModule)
- MySubClass.new.some_method
Add Comment
Please, Sign In to add comment