Permalink
Browse files

method_added and singleton_method_added should call super

Otherwise, any other included modules that rely on those methods
won't work properly.
  • Loading branch information...
1 parent 3aee0ec commit ee86f7d93d11c3d15fc14889c953fc24ef0b1ad9 @tobias committed Feb 11, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/dm-core/support/hook.rb
@@ -30,10 +30,12 @@ def self.included(base)
class << self
def method_added(name)
process_method_added(name, :instance)
+ super
end
def singleton_method_added(name)
process_method_added(name, :class)
+ super
end
end
end

0 comments on commit ee86f7d

Please sign in to comment.