RubyGems Navigation menu

store_base_sti_class_for_3_1 0.0.1

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.0.1 - January 14, 2012 (12 KB)

Runtime Dependencies:

Authors:

  • Andrew Mutz

Owners:

20af3bc1466efb94c3370abdd139b429

Total downloads 1,164

For this version 1,164

Required Ruby Version: None

Licenses:

N/A

Gemfile:
gem 'store_base_sti_class_for_3_1', '~> 0.0.1' = Copy to clipboard Copied!

install:
gem install store_base_sti_class_for_3_1 = Copy to clipboard Copied!

Links: