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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd03725f908a2620fb861adcaf012d37475521bd9571251e289c085f103851ae
4
- data.tar.gz: a1ee8d9ab91bd575ac5b8bbc83ee0ce7fdc50ac239a0427a857d6e642b4bbfb8
3
+ metadata.gz: 9eae77a7f8f3cfb9251c7bb4a22a965365648773ef43982a75be730639400caa
4
+ data.tar.gz: 75c2492ef39fd1d64595227c0ed7b36bc01347b79c4ee7b883bddcac60039a6f
5
5
  SHA512:
6
- metadata.gz: 603a5da6f6cad22c5082f94653de34dbc574adcab3a86d5d843a6fa6c5fdbbab0b4d3ed3fb33e32f46e947101db7f570970c99dfba63eac60410a09b284b30a5
7
- data.tar.gz: f8d3c0697542b943579cdd79039de1c1723e9e0dcefd3013e03533e82bb68593a4f4ca46f8a62632f2aa945847b1c14ddf813d20db712a0be566a8b1b37df1a9
6
+ metadata.gz: 36e424a231f6444607b1e9b463cac9720e50640ac0665d173e1bc32c2184f89793c4ed8039555b3a63826b9aac2c0b28455c9cfc734ab447026e4c2507f891fb
7
+ data.tar.gz: 5570bcd7285e1674b7aab271d9b64e79aff1e01cc94b9c58799d02a1fb4c2090bf0384aa3e0d8be2a5691c4bab0dcdeb3e4955691a44f05fbb3277ca026982d1
@@ -1,3 +1,3 @@
1
1
  module Historiographer
2
- VERSION = "4.1.13"
2
+ VERSION = "4.1.14"
3
3
  end
@@ -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.13
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-15 00:00:00.000000000 Z
11
+ date: 2024-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord