Project

General

Profile

Actions

Bug #5143

closed

include not properly registering modular methods

Added by chaffeqa (Quinn Chaffee) over 13 years ago. Updated about 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
1.9.3-preview1
Backport:
[ruby-core:38690]

Description

Ran into a bug when using a gem called FactoryGirl. The bug has to do with how 1.9.3 handles handles module inclusion, scope, and method_missing.

Here's a gist: https://gist.github.com/1119516 Where method missing is called, it's because the module Another, while included and referencing Something::Another, doesn't find the method when it should. (quote joshuaclayton)

If you need to dig in deeper to the specific issue, this github thread (https://github.com/thoughtbot/factory_girl/issues/167#issuecomment-1706227) goes into greater background detail.


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
Has duplicate Ruby master - Bug #5154: method_missing and module scope, regression in 1.9.3Closedmatz (Yukihiro Matsumoto)08/03/2011Actions
Actions

Also available in: Atom PDF

Like0
Like0