-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
C.f should be "ok". But when have require the mongoid, the result is xxx. mongoid and activesupport I do not know either side of the issue. Please tell me if there is a workaround.
gem "psych", "2.0.12" require "psych" gem "activesupport", "4.2.0" require "active_support/core_ext/kernel/concern" gem "mongoid", "4.0.1" require "mongoid" if true # <-- If false the result is ok class B def self.f "xxx" end end concern :M do class_methods do self # => Mongoid::Extensions::Object::ClassMethods def f "ok" end end end class C < B include M end C.f # => "xxx"