From: Quinn Chaffee Date: 2011-08-02T12:59:24+09:00 Subject: [ruby-core:38690] [Ruby 1.9 - Bug #5143][Open] include not properly registering modular methods Issue #5143 has been reported by Quinn Chaffee. ---------------------------------------- Bug #5143: include not properly registering modular methods http://redmine.ruby-lang.org/issues/5143 Author: Quinn Chaffee Status: Open Priority: Normal Assignee: Category: Target version: 1.9.3 ruby -v: 1.9.3-preview1 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. -- http://redmine.ruby-lang.org