From: hemant kumar <gethemant@...> Date: 2011-08-03T13:59:30+09:00 Subject: [ruby-core:38739] [Ruby 1.9 - Bug #5154][Open] method_missing and module scope, regression in 1.9.3 Issue #5154 has been reported by hemant kumar. ---------------------------------------- Bug #5154: method_missing and module scope, regression in 1.9.3 http://redmine.ruby-lang.org/issues/5154 Author: hemant kumar Status: Open Priority: Normal Assignee: Category: Target version: 1.9.3 ruby -v: ruby 1.9.3dev (2011-07-31 revision 32789) [x86_64-darwin10.8.0] There is this bug against, factory_girl, for complete story https://github.com/thoughtbot/factory_girl/issues/167 A minimum reproducible case is: <pre><code> module Something module Another def self.great puts "great was called" end end end include Something module Another def self.method_missing(name, *args, &block) p "method missing: #{name}" end end Another.great() </code></pre> In Ruby 1.9.2 the output is @great was called@ and with Ruby 1.9.3 @method missing: great@. -- http://redmine.ruby-lang.org