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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62d9fb8d7c77094ca6cef3a9deb43dc30cba70f8291ccf5dee451a04f441b6f6
4
- data.tar.gz: b0066239ed831c85968aab4b0f9455137a8f37c7b2f9d856ec4fb76d8e54a341
3
+ metadata.gz: 7a0b2f6fb30a96dbcbbbce17bd19e3476ff6aa723506c511992a2635a6871d97
4
+ data.tar.gz: ea1191cda8575afdcb7b912d3f921f2d5b8f0fe3dc9f7ffca0547d86693d5d1e
5
5
  SHA512:
6
- metadata.gz: 843ad7f5d576a913ffd9dae9d4c8eb63f9721d74cf9bd36b6fa323934a84a8a392637bf8f85437de23c7b205c5eadb97c9651eecfbe82a89654acc0f5b131e41
7
- data.tar.gz: e3c5d24e76b67e97ffc37ed9a14c6fbb187d3ac99db443a73a7c1c7eb6ebb5ebc6d213795ffec796c026a6cc2ad665223c0e8b3babcec597c8296811284ea89a
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)
@@ -1,3 +1,3 @@
1
1
  module ActiveType
2
- VERSION = '2.6.3'
2
+ VERSION = '2.6.4'
3
3
  end
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.3
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-08-13 00:00:00.000000000 Z
12
+ date: 2025-09-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler