include calling extend ends in SystemStackError
Reported by manveru | April 24th, 2008 @ 04:27 PM | in 0.11
Running following code you will find the bug.
It seems like ancestors are being checked but they don't included metaclasses, which leads to problems.
module Foo
def self.included(other)
other.extend self
end
end
class Bar
include Foo
end
Comments and changes to this ticket
-
-
Brian Ford April 24th, 2008 @ 05:41 PM
- → State changed from new to resolved
Committed in 4cdc61a. Thanks!
-
manveru April 25th, 2008 @ 03:58 AM
Sorry, but this does not fix the issue, it's only to show the problem.
Could you please open the ticket again?
-
Brian Ford April 25th, 2008 @ 10:38 AM
- → State changed from resolved to open
Good point. The ticket is open for business. :)
-
Wilson Bilkovich April 25th, 2008 @ 06:01 PM
- → Assigned user changed from to Wilson Bilkovich
I'll take a swing at this.
-
Wilson Bilkovich June 25th, 2008 @ 10:16 AM
- → Tag changed from to bug core module
- → Milestone changed from 1.0 preview to 0.10
-
Wilson Bilkovich July 10th, 2008 @ 03:37 PM
- → Milestone changed from 0.10 to 0.11
-
Charles Comstock November 25th, 2008 @ 09:05 AM
- → State changed from open to resolved
This appears to have since been resolved. All specs in included_spec.rb pass.
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
