From: Yui NARUSE Date: 2011-06-26T15:00:42+09:00 Subject: [ruby-core:37389] [Ruby 1.9 - Bug #3423][Assigned] Inconsistent behaviour of Module#const_get with included modules Issue #3423 has been updated by Yui NARUSE. Status changed from Open to Assigned Assignee set to Yukihiro Matsumoto ---------------------------------------- Bug #3423: Inconsistent behaviour of Module#const_get with included modules http://redmine.ruby-lang.org/issues/3423 Author: Magnus Holm Status: Assigned Priority: Low Assignee: Yukihiro Matsumoto Category: core Target version: 1.9.2 ruby -v: ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-darwin10.3.0] =begin 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. =end -- http://redmine.ruby-lang.org