Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

DataMapper::Hook .method_added and .singleton_method_added should call super #182

Merged
merged 1 commit into from
Apr 8, 2012

Conversation

tobias
Copy link
Contributor

@tobias tobias commented Feb 11, 2012

Otherwise, any other included modules that rely on those methods
won't work properly. Plus, it's the polite thing to do :)

Otherwise, any other included modules that rely on those methods
won't work properly.
dkubb added a commit that referenced this pull request Apr 8, 2012
DataMapper::Hook .method_added and .singleton_method_added should call super
@dkubb dkubb merged commit df06eff into datamapper:master Apr 8, 2012
@dkubb
Copy link
Member

dkubb commented Apr 8, 2012

Thanks for this pull request, merged!

BTW, in general my belief is that when we're overriding "callback" type methods like this it's a bug not to call super at some point. If you see cases where included or extended (or the methods in this PR) are not calling super please feel free to report a bug or send a pull request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants