mhuggins / multiple_table_inheritance

Multiple Table Inheritance is a plugin designed to allow for multiple table inheritance between your database tables and your ActiveRecord models.
30 stars 4 forks source link

Can't set password when using has_secure_password on parent #10

Open dkolath opened 11 years ago

dkolath commented 11 years ago

If I use Rails 3.1 has_secure_password in the parent, creating a new record fails with ActiveRecord::UnknownAttributeError: unknown attribute: password

sub_user = SubUser.create!(:password => "foo", :email => "foo")

I am currently able to work-around this by defining has_secure_password on each inheriting class, but of course not the ideal solution.