#641 ✓not-applicable
Jon Hancock

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

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

Tags

Pages