RubyGems Navigation menu

store_base_sti_class_for_3_0 0.1.3

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.1.3 - June 2, 2011 (16.5 KB)
  2. 0.1.2 - April 26, 2011 (16.5 KB)
  3. 0.1.1 - April 19, 2011 (12.5 KB)
  4. 0.1.0 - April 18, 2011 (12.5 KB)
  5. 0.0.2 - February 21, 2011 (12.5 KB)
Show all versions (6 total)

Runtime Dependencies:

Authors:

  • Paul Kmiec

Owners:

11894c285c8062a06551f143bb43a89a

Total downloads 6,610

For this version 1,531

Show all versions (6 total)

Required Ruby Version: None

Licenses:

N/A

Gemfile:
gem 'store_base_sti_class_for_3_0', '~> 0.1.3' = Copy to clipboard Copied!

install:
gem install store_base_sti_class_for_3_0 = Copy to clipboard Copied!

Links: