active_type 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.5.2.mysql2.lock +1 -1
- data/Gemfile.5.2.pg.lock +1 -1
- data/Gemfile.5.2.sqlite3.lock +1 -1
- data/Gemfile.6.0.sqlite3.lock +1 -1
- data/Gemfile.6.1.pg.lock +1 -1
- data/Gemfile.6.1.sqlite3.lock +1 -1
- data/lib/active_type/util.rb +3 -0
- data/lib/active_type/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d14a09e976ff66dc4b1ead8c7f30cd4e81b226b005a296d65ee81770b140899a
|
4
|
+
data.tar.gz: 391c56642e084ef358af0bcb68909f512823db84e640d3b97e61efe0bce71c21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a924ce52a863ab2dbf8f1e0e40da9e8c4083f5a4f1bf3215ed44740471dc2ba8498066b9ace3a93c201cc8a2a078f5abf2ccb2816a7486f57e2cffa1b128703e
|
7
|
+
data.tar.gz: 3a3937c2815c14a432645559d87588a0ae3a6d07ee8f451ed6882e825978a391d96f109ff5f8fe1d20aebf3c87c5d952fd7aa999fe22cfd88f56a4d9d198ae37
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
|
5
5
|
## Unreleased changes
|
6
6
|
|
7
|
+
## 1.8.0 (2021-04-27)
|
8
|
+
|
9
|
+
* Fixed: When casting an unsaved record, the new record will have the same associations as the base record.
|
10
|
+
|
11
|
+
## 1.7.0 (2021-04-27)
|
12
|
+
|
13
|
+
* Added: Support for Ruby 3.0.
|
14
|
+
|
7
15
|
## 1.6.0 (2021-03-04)
|
8
16
|
|
9
17
|
* Fixed: Numerous issues with Rails 6.1. Thanks to @vr4b4c for some of the changes.
|
data/Gemfile.5.2.mysql2.lock
CHANGED
data/Gemfile.5.2.pg.lock
CHANGED
data/Gemfile.5.2.sqlite3.lock
CHANGED
data/Gemfile.6.0.sqlite3.lock
CHANGED
data/Gemfile.6.1.pg.lock
CHANGED
data/Gemfile.6.1.sqlite3.lock
CHANGED
data/lib/active_type/util.rb
CHANGED
@@ -34,6 +34,9 @@ module ActiveType
|
|
34
34
|
casted.instance_variable_set(:@new_record, record.new_record?)
|
35
35
|
# Rails 3.2, 4.2
|
36
36
|
casted.instance_variable_set(:@destroyed, record.destroyed?)
|
37
|
+
|
38
|
+
casted.instance_variable_set(:@association_cache, record.instance_variable_get(:@association_cache))
|
39
|
+
|
37
40
|
# Rails 3.2, 4.2
|
38
41
|
errors = record.errors
|
39
42
|
if errors.kind_of? ActiveModel::Errors
|
data/lib/active_type/version.rb
CHANGED