active_model_persistence 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/active_model_persistence/persistence.rb +1 -1
- data/lib/active_model_persistence/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be3fd5f19c5ceddcc38dbd4c7b104e0a7b26ac8945178b0e568efa787087b68c
|
4
|
+
data.tar.gz: c979c5b04b91063dd8ae264cab66f4be4619c7105393b3b2545e9562899ee397
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ece4a13179ea9317f763ffc23ffefb3109c49524fe62a75e22550659fe100bc01a07354f0d7e4450540c1dbc8c805101ca7a42ab76378f083008fcca9b7adbdc
|
7
|
+
data.tar.gz: 5f7d14093744d6b27a5b4045efd4542c2b9c49e671045dd0c4aed497ca29b3486ae2925fd7bce4ec65186382c381311e166ad8ebd52f72bc98b2ec0b6878d348
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,12 @@
|
|
7
7
|
|
8
8
|
The full change log is stored on [this project's GitHub releases page](https://github.com/jcouball/active_model_persistence/releases).
|
9
9
|
|
10
|
+
## v0.3.1
|
11
|
+
|
12
|
+
* d904b30 Fix spelling of UniqueConstraintError (#12)
|
13
|
+
|
14
|
+
See https://github.com/ruby-git/ruby-git/releases/tag/v0.3.1
|
15
|
+
|
10
16
|
## v0.3.0
|
11
17
|
|
12
18
|
* 3b93fae List all changes in CHANGELOG.md instead of just a link (#10)
|
@@ -435,7 +435,7 @@ module ActiveModelPersistence
|
|
435
435
|
#
|
436
436
|
def _create
|
437
437
|
return false unless primary_key?
|
438
|
-
raise
|
438
|
+
raise UniqueConstraintError if primary_key_index.include?(primary_key)
|
439
439
|
|
440
440
|
self.class.object_array << self
|
441
441
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_model_persistence
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Couball
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|