RailsCasts Pro episodes are now free!

Learn more or hide this

Philippe Guégan's Profile

GitHub User: pguegan

Comments by Philippe Guégan

Avatar

Instead of playing with booleans to change objects behaviors, what you guys think about STI?

Personally, I'd made the Guest class as a subclass of User. It's then possible to override behavior (validations, methods, etc.) without any ugly if. It sounds more OO to me. Am I right?