Conditional Validations in Rails
The single table inheritance feature of rails is really useful. Today I needed to turn off validations in the extended model that were implemented in the base class.
I scratched my head for a while then realised its actually very simple.
The above validation only takes place for the base class and not for classes that extend this. The beauty of STI being that the database stays pretty clean.