
model inheritance is broken
Reported by Jon Hancock | November 6th, 2008 @ 01:44 AM
Steps to repeat:
1 - from a new app, take the default User model and inherit it from some empty class, such as User < MyModule::Model
2 - try to use your User class, such as User.auto_migrate!. You should get output like the following:
>> User.auto_migrate!
NoMethodError: undefined method `auto_migrate!' for SS::Model:Class
from /Library/Ruby/Gems/1.8/gems/dm-core-0.9.6/lib/dm-core/auto_migrations.rb:77:in `auto_migrate_down!'
from /Library/Ruby/Gems/1.8/gems/dm-core-0.9.6/lib/dm-core/auto_migrations.rb:63:in `auto_migrate!'
from (irb):1
from :0
Comments and changes to this ticket
-
Dan Kubb (dkubb) January 8th, 2009 @ 02:19 PM
- State changed from new to unconfirmed
- Assigned user cleared.
-
Michael Klishin (antares) January 10th, 2009 @ 06:32 AM
- State changed from unconfirmed to not-applicable
I don't see how this is a valid report. No mentioning how it should be have, no explanation what superclass model looks like. Please provide more details and someone will reopen it.
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »