composite_primary_keys 12.0.0 → 12.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 310d0182aec4e25246c7dd2fb3fe1acfddf92c10a427168b281fb16d24293852
|
|
4
|
+
data.tar.gz: 3a985b615dca7dc7eb1db8d654bfa4b53ea29c5c99cb994927eb55fb8569269c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3d39752f6e7f510c23a59afdc0e09195904164f2f991c41525ce0e2ed2e0591eb312d8d13b2344077d208cd14d6bc38c55b232997acf7c51b3d4df763f2677c2
|
|
7
|
+
data.tar.gz: b94a65d0dc8b1bc955bff3e61b485c060d110849a301b8047ad3702fee4b23bf6d741a91e4ebeddce0ce8329f39004326666c1f6a6ec0937985c7537d3f14653
|
data/History.rdoc
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
== 12.0.
|
|
2
|
-
*
|
|
3
|
-
* Update
|
|
1
|
+
== 12.0.1 (2019-11-25)
|
|
2
|
+
* Convert attribute names to strings before checking for them in has_attribute? (Daniel de Haas)
|
|
3
|
+
* Update the comment referring to the overridden Rails code (Daniel de Haas)
|
|
4
|
+
|
|
5
|
+
== 12.0.0 (2019-09-03)
|
|
6
|
+
* Update to ActiveRecord 6.0 (Hiroshi Kajisha, Alexandru Anca, Charlie Savage, Sammy Larbi)
|
|
7
|
+
* Update travis setup (Olle Jonsson, Charlie Savage)
|
|
4
8
|
|
|
5
9
|
== 11.2.0 (2019-03-16)
|
|
6
10
|
* When creating new records, honor composite key autoincrementing fields if possible (Antti Pitkänen)
|
|
@@ -2,8 +2,8 @@ module ActiveRecord
|
|
|
2
2
|
module AttributeMethods
|
|
3
3
|
def has_attribute?(attr_name)
|
|
4
4
|
# CPK
|
|
5
|
-
# attributes.key?(attr_name)
|
|
6
|
-
Array(attr_name).all? {|single_attr| attributes.key?(single_attr) }
|
|
5
|
+
# @attributes.key?(attr_name.to_s)
|
|
6
|
+
Array(attr_name).all? {|single_attr| attributes.key?(single_attr.to_s) }
|
|
7
7
|
end
|
|
8
8
|
end
|
|
9
9
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: composite_primary_keys
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 12.0.
|
|
4
|
+
version: 12.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Charlie Savage
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-11-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -270,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
270
270
|
- !ruby/object:Gem::Version
|
|
271
271
|
version: '0'
|
|
272
272
|
requirements: []
|
|
273
|
-
rubygems_version: 3.0.
|
|
273
|
+
rubygems_version: 3.0.6
|
|
274
274
|
signing_key:
|
|
275
275
|
specification_version: 4
|
|
276
276
|
summary: Composite key support for ActiveRecord
|