Displaying 1 result from an estimated 1 matches for "baseuser".
Did you mean:
askuser
2006 Feb 22
0
STI and Inheritance
Hello ~
I have run into an issue with some of my objects not behaving as I expect.
Basically I am using STI on my Users table and have several types of users.
BaseUser
--UserType1 < BaseUser
--UserType2 < BaseUser
etc....
Recently when I create a UserType object and save it to the database it
ignores the validation rules for the parent class BaseUser. Furthermore the
after_validation method in the BaseUser was not being triggered if I did:
after_validati...