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

inherited class method does not exist #6

Open
wafcio opened this issue Apr 6, 2012 · 4 comments
Open

inherited class method does not exist #6

wafcio opened this issue Apr 6, 2012 · 4 comments

Comments

@wafcio
Copy link

wafcio commented Apr 6, 2012

When I tried use dm-is-list with datamapper 1.3.0beta I error message with inherited hook.

Below I past part of necessary error message:

/.../gems/dm-core-f51603618654/lib/dm-core/support/hook.rb:169:in register_hook': inherited class method does not exist (ArgumentError) from /.../gems/dm-core-f51603618654/lib/dm-core/support/hook.rb:353:ininstall_hook'
from /.../gems/dm-core-f51603618654/lib/dm-core/support/hook.rb:72:in after_class_method' from /.../gems/1.9.1/bundler/gems/dm-is-list-6826cd2647bf/lib/dm-is-list/is/list.rb:297:inis_list'

@tpitale
Copy link
Member

tpitale commented Mar 19, 2015

I'm still seeing this. I'll try to dig into it.

Seems like a dm-core issue, with regard to the register_hooks call not finding a class method called inherited.

@tpitale
Copy link
Member

tpitale commented Mar 19, 2015

This code here is not happy: https://github.com/datamapper/dm-is-list/blob/master/lib/dm-is-list/is/list.rb#L297 But I think it's a change in dm-core that is causing this.

@tpitale
Copy link
Member

tpitale commented Mar 19, 2015

Opened a related issue in dm-core: datamapper/dm-core#277

@tpitale
Copy link
Member

tpitale commented Mar 26, 2015

I'll open a new PR based on @solnic's suggestion to get rid of hook usage for this case.

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

No branches or pull requests

2 participants