Overview
Classy Inheritance adds a depends_on class method to your ActiveRecord model so that you can define requisite objects.
This functionality is provided using the existing ActiveRecord methods without monkey patching any core code. Essentially, it provides an easy interface to generate code that anyone could add to their model to receive the same result. Depending on the parameters to your depends_on call, it may add some of the following methods: validates_presence_of, validates_associated, has_one or belongs_to.
More functionality coming for optional relationships.
Members
Manager:
Andrew Stone
Latest news
Classy Inheritance: Release 0.6.2
Added back in validates_associated to give better error messages. Fixed typo.
Classy Inheritance: Release 0.6.1
Removed validates_associated overrides.
Classy Inheritance: Release 0.6.0
New postfix option. Options prefix and postfix now accept options other than true. Small patch for support of class_name options.
Classy Inheritance: Release 0.5.0
Added new options(validates_presence_if, validates_associated_if) and some tests.
Classy Inheritance: Release 0.4.4
Add correct support for :class_name attribute.