store_base_sti_class_for_3_0 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/VERSION +1 -1
- data/lib/store_base_sti_class_for_3_0.rb +1 -1
- data/store_base_sti_class_for_3_0.gemspec +3 -2
- metadata +5 -4
data/CHANGELOG
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
@@ -25,7 +25,7 @@ class ActiveRecord::Base
|
|
25
25
|
"= #{quote_value(base_class.sti_name)}"
|
26
26
|
else
|
27
27
|
names = sti_names.map { |name| quote_value(name) }
|
28
|
-
names.length > 1 ? "IN (#{names.join(',')})" : "= #{names}"
|
28
|
+
names.length > 1 ? "IN (#{names.join(',')})" : "= #{names.first}"
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{store_base_sti_class_for_3_0}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Paul Kmiec"]
|
12
|
-
s.date = %q{2011-02-
|
12
|
+
s.date = %q{2011-02-21}
|
13
13
|
s.description = %q{
|
14
14
|
ActiveRecord has always stored the base class in polymorphic _type columns when using STI. This can have non-trivial
|
15
15
|
performance implications in certain cases. This gem adds 'store_base_sti_class' configuration options which controls
|
@@ -22,6 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
]
|
23
23
|
s.files = [
|
24
24
|
".document",
|
25
|
+
"CHANGELOG",
|
25
26
|
"Gemfile",
|
26
27
|
"Gemfile.lock",
|
27
28
|
"LICENSE.txt",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: store_base_sti_class_for_3_0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Paul Kmiec
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-21 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -105,6 +105,7 @@ extra_rdoc_files:
|
|
105
105
|
- README.rdoc
|
106
106
|
files:
|
107
107
|
- .document
|
108
|
+
- CHANGELOG
|
108
109
|
- Gemfile
|
109
110
|
- Gemfile.lock
|
110
111
|
- LICENSE.txt
|