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