active_type 2.6.3 → 2.6.4
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/active_type/nested_attributes/association.rb +1 -1
- data/lib/active_type/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: 7a0b2f6fb30a96dbcbbbce17bd19e3476ff6aa723506c511992a2635a6871d97
|
4
|
+
data.tar.gz: ea1191cda8575afdcb7b912d3f921f2d5b8f0fe3dc9f7ffca0547d86693d5d1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 012e905251e98a6da960f5c1f04ca30d55d6af090812e31e5bb13dfa4832128d9cfd9128552a5e2118d23d97e09016070c094d46d39e0101f15df8e61d66914c
|
7
|
+
data.tar.gz: 62a7496d44a532065c92cf4b8d75971cb3333eb82d7456a6fa9d31529f40327cf720a7115859319dc79182a2020987e7a23512f1551ab36b9336e82241ab02b1
|
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.6.4 (2025-09-11)
|
6
|
+
|
7
|
+
* Fixed: When using nests_many, nested updates, with preloaded records, using string ids will no longer cause additional DB queries.
|
8
|
+
|
5
9
|
## 2.6.3 (2025-08-11)
|
6
10
|
|
7
11
|
* Fixed: Autosave on associations will triggers saves when only virtual attributes have changed.
|
data/README.md
CHANGED
@@ -85,7 +85,7 @@ The following behaviours are different than in vanilla Rails 5:
|
|
85
85
|
|
86
86
|
If you need to use `ActiveRecord's` own `.attribute` method, you can still access is as `ar_attribute`:
|
87
87
|
|
88
|
-
```
|
88
|
+
```rb
|
89
89
|
class User < ApplicationRecord
|
90
90
|
# use my custom type to serialize to the database
|
91
91
|
ar_attribute :password, MyPasswordType.new
|
@@ -97,7 +97,7 @@ module ActiveType
|
|
97
97
|
end
|
98
98
|
|
99
99
|
def fetch_child(parent, id)
|
100
|
-
assigned = assigned_children(parent).detect { |r| r.id == id }
|
100
|
+
assigned = assigned_children(parent).detect { |r| r.id.to_s == id.to_s }
|
101
101
|
return assigned if assigned
|
102
102
|
|
103
103
|
if child = find_scope(parent).find_by_id(id)
|
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.6.
|
4
|
+
version: 2.6.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: 2025-
|
12
|
+
date: 2025-09-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|