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.
Required Ruby Version
None
Authors
Andrew Stone
Versions
- 0.7.0 April 11, 2009This gem version was imported to RubyGems.org on July 25, 2009. The date displayed was specified by the author in the gemspec. (21.5 KB)
- 0.6.4 February 06, 2009This gem version was imported to RubyGems.org on July 25, 2009. The date displayed was specified by the author in the gemspec. (19.5 KB)
- 0.6.2 September 25, 2008This gem version was imported to RubyGems.org on July 25, 2009. The date displayed was specified by the author in the gemspec. (30.5 KB)
- 0.6.1 July 21, 2008This gem version was imported to RubyGems.org on July 25, 2009. The date displayed was specified by the author in the gemspec. (30.5 KB)
- 0.6.0 July 18, 2008This gem version was imported to RubyGems.org on July 25, 2009. The date displayed was specified by the author in the gemspec. (30.5 KB)