From: Hiroshi NAKAMURA Date: 2011-06-26T16:03:26+09:00 Subject: [ruby-core:37422] [Ruby 1.9 - Bug #3423] Inconsistent behaviour of Module#const_get with included modules Issue #3423 has been updated by Hiroshi NAKAMURA. Target version changed from 1.9.2 to 1.9.3 ---------------------------------------- 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.3 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