RubyGems Navigation menu

store_base_sti_class 0.2.0

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.

Versions:

  1. 0.2.0 - August 3, 2014 (23.5 KB)
  2. 0.1.0 - November 28, 2013 (22.5 KB)
  3. 0.0.2 - May 11, 2012 (18.5 KB)
  4. 0.0.1 - May 9, 2012 (19 KB)

Authors:

  • Andrew Mutz

Owners:

20af3bc1466efb94c3370abdd139b429

Total downloads 10,908

For this version 757

Required Ruby Version: >= 0

Licenses:

MIT

Gemfile:
gem 'store_base_sti_class', '~> 0.2.0' = Copy to clipboard Copied!

install:
gem install store_base_sti_class = Copy to clipboard Copied!

Links: