RubyGems.org

ActiveRecord has always stored the base class in polymorphic _type columns when using STI. This can have non-trivial performance implications in certain cases. This gem adds 'store_base_sti_class' configuration options which controls whether ActiveRecord will store the base class or the actual class. Default to true for backwards compatibility.

installgem install store_base_sti_class
Authors

Andrew Mutz

2,101 total downloads 1,707 for this version
Owners

20af3bc1466efb94c3370abdd139b429

Gemfile
gem "store_base_sti_class", "~> 0.0.2"
Versions
  1. 0.0.2 May 11, 2012
  2. 0.0.1 May 9, 2012
Runtime Dependencies
  1. activerecord >= 0