multiple_table_inheritance icon indicating copy to clipboard operation
multiple_table_inheritance copied to clipboard

Can't set password when using has_secure_password on parent

Open dkolath opened this issue 12 years ago • 0 comments

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.

dkolath avatar Jan 10 '13 03:01 dkolath