#1373 new
Daniel Neighman

STI Broken

Reported by Daniel Neighman | July 21st, 2010 @ 07:10 PM

When trying to use STI with dm-is-list

I got the following error

method `execute_after_inherited_nan_hook_stack' not defined in Default::LikelihoodLabel
/Users/dneighman/.rvm/gems/ruby-1.8.7-p174/gems/dm-core-1.0.0/lib/dm-core/support/hook.rb:357:in `remove_method'
/Users/dneighman/.rvm/gems/ruby-1.8.7-p174/gems/dm-core-1.0.0/lib/dm-core/support/hook.rb:357:in `install_hook'
/Users/dneighman/.rvm/gems/ruby-1.8.7-p174/gems/dm-core-1.0.0/lib/dm-core/support/hook.rb:90:in `after_class_method'
/Users/dneighman/.rvm/gems/ruby-1.8.7-p174/gems/dm-is-list-1.0.0/lib/dm-is-list/is/list.rb:297:in `is_list'
/Users/dneighman/.rvm/gems/ruby-1.8.7-p174/gems/dm-core-1.0.0/lib/dm-core/model/is.rb:23:in `send'
/Users/dneighman/.rvm/gems/ruby-1.8.7-p174/gems/dm-core-1.0.0/lib/dm-core/model/is.rb:23:in `is'

The reason for this error is pretty simple:


In the if test on that line it's checking the before_hook_name rather than the after_hook_name.


No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket