Skip to content

Commit

Permalink
Make a terrifying change to allow prepends to work on modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Apr 15, 2015
1 parent 97e6e09 commit 7ac2331
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/main/java/org/jruby/IncludedModuleWrapper.java
Expand Up @@ -205,4 +205,10 @@ public Collection<String> getConstantNames(boolean includePrivate) {
public IRubyObject getAutoloadConstant(String name) {
return origin.getAutoloadConstant(name);
}

@Override
protected DynamicMethod searchMethodCommon(String name) {
// try us and superclasses (from prepend)
return origin.searchMethodInner(name);
}
}

0 comments on commit 7ac2331

Please sign in to comment.