Skip to content

Commit

Permalink
* class.c (rb_include_module): don't clear the method cache if the
Browse files Browse the repository at this point in the history
  included module has no method.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
akr committed Aug 1, 2010
1 parent 572b8b3 commit a35c3cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Sun Aug 1 09:44:25 2010 Tanaka Akira <[email protected]>

* class.c (rb_include_module): don't clear the method cache if the
included module has no method.

Sun Aug 1 09:21:32 2010 Tanaka Akira <[email protected]>

* ext/pathname/pathname.c (path_sub): Pathname#sub translated
Expand Down
3 changes: 2 additions & 1 deletion class.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,8 @@ rb_include_module(VALUE klass, VALUE module)
}
}
c = RCLASS_SUPER(c) = include_class_new(module, RCLASS_SUPER(c));
changed = 1;
if (RMODULE_M_TBL(module) && RMODULE_M_TBL(module)->num_entries)
changed = 1;
skip:
module = RCLASS_SUPER(module);
}
Expand Down

0 comments on commit a35c3cf

Please sign in to comment.