-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstore_base_sti_class.gemspec
30 lines (24 loc) · 1.13 KB
/
store_base_sti_class.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# frozen_string_literal: true
require_relative 'lib/store_base_sti_class/version'
Gem::Specification.new do |s|
s.name = 'store_base_sti_class'
s.version = StoreBaseSTIClass::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ['Nicolas Rodriguez']
s.email = ['nico@nicoladmin.fr']
s.license = 'MIT'
s.homepage = '/~https://github.com/jbox-web/store_base_sti_class'
s.summary = <<~MSG
Modifies ActiveRecord 5.0.x - 7.0.x with the ability to store the actual class (instead of the base class) in
polymorhic _type columns when using STI.
MSG
s.description = <<~MSG
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 the 'store_base_sti_class' configuration option which
controls whether ActiveRecord will store the base class or the actual class. Defaults to true for backwards
compatibility.'
MSG
s.required_ruby_version = '>= 3.1.0'
s.files = Dir['README.md', 'LICENSE', 'lib/**/*.rb']
s.add_dependency('activerecord', ['>= 7.0', '< 8.1'])
end