path: root/file.c
diff options
authorJeremy Evans <>2021-01-14 11:59:25 -0800
committerJeremy Evans <>2021-01-14 20:43:30 -0800
commite09094546a19d6b62b3e21d0b061b103cf21f760 (patch)
tree3b0cacf97950307ef79bbef1abf445e213f1820a /file.c
parent1cb0c5ac49e180cca060e3a17eba6c561f5330c2 (diff)
Make Module#prepend affect ancestor chain even if argument already included in receiver
Previously, if a class included a module and then prepended the same module, the prepend had no effect. This changes the behavior so that the prepend has an effect unless the module is already prepended the receiver. While here, rename the origin_seen variable in include_modules_at, since it is misleading. The variable tracks whether c has been seen, not whether the origin of klass has been. Fixes [Bug #17423]
Notes: Merged:
Diffstat (limited to 'file.c')
0 files changed, 0 insertions, 0 deletions