Project

General

Profile

Actions

Bug #5154

closed

method_missing and module scope, regression in 1.9.3

Added by gnufied (hemant kumar) over 13 years ago. Updated about 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3dev (2011-07-31 revision 32789) [x86_64-darwin10.8.0]
Backport:
[ruby-core:38739]

Description

There is this bug against, factory_girl, for complete story

https://github.com/thoughtbot/factory_girl/issues/167

A minimum reproducible case is:


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()

In Ruby 1.9.2 the output is @great was called@ and with Ruby 1.9.3 @method missing: great@.


Related issues 2 (0 open2 closed)

Is duplicate of Ruby master - Bug #3422: Object.const_get(:A, false) can access BasicObject::AClosedkosaki (Motohiro KOSAKI)06/11/2010Actions
Is duplicate of Ruby master - Bug #5143: include not properly registering modular methodsClosed08/02/2011Actions

Updated by kosaki (Motohiro KOSAKI) over 13 years ago

  • Category set to core
  • Status changed from Open to Assigned
  • Assignee set to matz (Yukihiro Matsumoto)
  • Priority changed from Normal to 5

Updated by nobu (Nobuyoshi Nakada) about 13 years ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0