RubyGems.org

ActiveRecord is awesome, inheritance is not always so awesome. This gem is for people who want to use ActiveRecord but don't want to be forced to use inheritance of ActiveRecord:Base in their models. Magic stuff happens that keeps the ActiveRecord::Base relationship away from your model object graph until runtime but you can still use all the ActiveRecord methods on your model as you're accustomed to. Also, you now have an inheritance slot freed up - easy peasy :-)

installgem install active_record_composition
Authors

Kevin Beddingfield

14,348 total downloads 5,272 for this version
Owners

7cc0d7569860a4a203ad8da4ce01b16d

Gemfile
gem 'active_record_composition', '~> 0.0.3'
Versions
  1. 0.0.3 February 24, 2012 (4 KB)
  2. 0.0.2 February 24, 2012 (3.5 KB)
  3. 0.0.1 February 23, 2012 (4 KB)
Runtime Dependencies
  1. activerecord >= 3.2.1