historiographer 4.1.13 → 4.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/historiographer/version.rb +1 -1
- data/lib/historiographer.rb +3 -0
- 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: 9eae77a7f8f3cfb9251c7bb4a22a965365648773ef43982a75be730639400caa
|
4
|
+
data.tar.gz: 75c2492ef39fd1d64595227c0ed7b36bc01347b79c4ee7b883bddcac60039a6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36e424a231f6444607b1e9b463cac9720e50640ac0665d173e1bc32c2184f89793c4ed8039555b3a63826b9aac2c0b28455c9cfc734ab447026e4c2507f891fb
|
7
|
+
data.tar.gz: 5570bcd7285e1674b7aab271d9b64e79aff1e01cc94b9c58799d02a1fb4c2090bf0384aa3e0d8be2a5691c4bab0dcdeb3e4955691a44f05fbb3277ca026982d1
|
data/lib/historiographer.rb
CHANGED
@@ -306,6 +306,9 @@ module Historiographer
|
|
306
306
|
# Recursively snapshot associations, avoiding infinite loops
|
307
307
|
self.class.reflect_on_all_associations.each do |association|
|
308
308
|
associated_records = send(association.name)&.reload
|
309
|
+
if associated_records.respond_to?(:order)
|
310
|
+
associated_records = associated_records.order(id: :asc)
|
311
|
+
end
|
309
312
|
Array(associated_records).each do |record|
|
310
313
|
model_name = record.class.name
|
311
314
|
record_id = record.id
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: historiographer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- brettshollenberger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|