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.

Issue tracking

View all issues

Members

Manager: Andrew Stone

Latest news

Classy Inheritance: Release 0.6.2
Added back in validates_associated to give better error messages. Fixed typo.
Added by Andrew Stone 54 days ago

Classy Inheritance: Release 0.6.1
Removed validates_associated overrides.
Added by Andrew Stone 120 days ago

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.
Added by Andrew Stone 123 days ago

Classy Inheritance: Release 0.5.0
Added new options(validates_presence_if, validates_associated_if) and some tests.
Added by Andrew Stone 133 days ago

Classy Inheritance: Release 0.4.4
Add correct support for :class_name attribute.
Added by Andrew Stone 147 days ago

View all news