From: Magnus Holm Date: 2010-06-11T04:20:59+09:00 Subject: [ruby-core:30720] [Bug #3423] Inconsistent behaviour of Module#const_get with included modules Bug #3423: Inconsistent behaviour of Module#const_get with included modules http://redmine.ruby-lang.org/issues/show/3423 Author: Magnus Holm Status: Open, Priority: Low Category: core ruby -v: ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-darwin10.3.0] module Foo A = 1 end class Object include Foo end class Bar include Foo end Object.const_get(:A, false) # => works fine Bar.const_get(:A, false) # => raises error Untested patch attached. This might also fix #3422. ---------------------------------------- http://redmine.ruby-lang.org