active_type 2.3.3 → 2.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -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/Gemfile.7.0.pg.lock +1 -1
- data/Gemfile.7.0.sqlite3.lock +1 -1
- data/lib/active_type/util.rb +6 -0
- data/lib/active_type/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd2feb0207bfe501f78ebc8f53d783f773325f3ef50eb8d90795405a0b6e11a2
|
4
|
+
data.tar.gz: 4e160637b5f863125c41f1fc879a03d5d5b0d1a57da76685886ea8a9ba499401
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44834e4f7ed70fec35eaac3202546f5fa32761417c7a6aadac13533f3757dcff104cd6a8c10c34cd3a0f69f15b63a7809b08c9196ced7d570c0dccb4a96daede
|
7
|
+
data.tar.gz: 297442b7ef3c0a0a2dff9be7d64518ae41dc5cd79bbd359fb40a14c6cc5b8ae93a4ad7d14b3eee2768e6328a99b4991ed80947ba1259db4b3cbce28c6e798573
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## 2.3.4 (2023-05-11)
|
6
|
+
|
7
|
+
* Fixed: ActiveType.cast preserves `.strict_loading?` and `.readonly?`
|
8
|
+
|
5
9
|
## 2.3.3 (2023-05-11)
|
6
10
|
|
7
11
|
* Fixed: `accepts_nested_attributes_for` ignores virtual attributes. Thanks to @nalabjp.
|
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/Gemfile.7.0.pg.lock
CHANGED
data/Gemfile.7.0.sqlite3.lock
CHANGED
data/lib/active_type/util.rb
CHANGED
@@ -43,6 +43,12 @@ module ActiveType
|
|
43
43
|
casted.instance_variable_set(:@destroyed, record.destroyed?)
|
44
44
|
# Rails 5.2+
|
45
45
|
casted.instance_variable_set(:@mutations_from_database, record.instance_variable_get(:@mutations_from_database))
|
46
|
+
# Rails 6.1+
|
47
|
+
casted.instance_variable_set(:@strict_loading, record.instance_variable_get(:@strict_loading))
|
48
|
+
# Rails 7.0+
|
49
|
+
casted.instance_variable_set(:@strict_loading_mode, record.instance_variable_get(:@strict_loading_mode))
|
50
|
+
# Rails 1.0+
|
51
|
+
casted.instance_variable_set(:@readonly, record.instance_variable_get(:@readonly))
|
46
52
|
|
47
53
|
# Rails 3.2, 4.2
|
48
54
|
errors = record.errors
|
data/lib/active_type/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_type
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Kraze
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-12-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
|
-
rubygems_version: 3.
|
131
|
+
rubygems_version: 3.4.10
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: Make any Ruby object quack like ActiveRecord
|