#1271 ✓resolved
Marcin Kulik

Redefining hook on STI subclass doesn't work

Reported by Marcin Kulik | May 14th, 2010 @ 12:16 PM | in 1.0.0

DM crashes when you try to add hook to STI subclass (a hook which was already added to superclass).

Look here for example:

When you run this code you'll get:
dm-core/model/hook.rb:57: undefined method []' for nil:NilClass (NoMethodError)

It's broken on current master, on 0.10.2 seems to work correctly.

Comments and changes to this ticket

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 »

Referenced by