paper_trail-association_tracking 2.4.0 → 2.4.1

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: 53355e19e486ebed17b18112e6f20a118b98dc5a3777ba8fd2bb5dfd42864be3
4
- data.tar.gz: 3aa942c6ab92e50d27bcaf8092153d3fb997922cb9a4266cbe372e0433e0be0f
3
+ metadata.gz: db930a2a677a76ab3663205f4b757c1239c99114c0e019b9c7d14a46fcbfb7d1
4
+ data.tar.gz: d08eee0dd5b83aa78d6b7a03cf65f37ddee1061afd4912c0ef74bf3bff372962
5
5
  SHA512:
6
- metadata.gz: 198d8abfe3e63c3d73b850fce97c5ffaf8291b7e8bb99385301e03585e064e0c9a61781b421219beaefd1d4d2f925deb0b0690a42a0f7065347531c5bf5c59b4
7
- data.tar.gz: 60045bcaccabb01aae1567187d4978cd0fd84f3cc354fa06bc60630d5809850e33b5107533c8482ea69af1bbdd4d3ad54bfa6805b04d27588754dfdbc4bf1b2a
6
+ metadata.gz: f2aa9352af4d2ffc3cea77e9e4b17762d6cd458044a9d136e33e5eb808af3ebc4406e845b45b1a9af75075412429232ec8013e9cc4fb17e7d31f86f8b6689ea9
7
+ data.tar.gz: 2ee4b693d7b1a1e352f1667d6337a1121ae2d9fb03773a7b6f72ad3343fcb8fe31f4b8308afd170f8809fa2c76b2e5ecec3c156894954ad37c94aa864a094c33
data/CHANGELOG.md CHANGED
@@ -3,6 +3,9 @@
3
3
  ### Unreleased - [View Diff](https://github.com/westonganger/paper_trail-association_tracking/compare/v2.4.0...master)
4
4
  - Nothing yet
5
5
 
6
+ ### v2.4.1 - 2026-09-20 - [View Diff](https://github.com/westonganger/paper_trail-association_tracking/compare/v2.4.0...v2.4.1)
7
+ - [#60](https://github.com/westonganger/paper_trail-association_tracking/pull/60) - Fix initialization errors for non-Rails ActiveRecord only integrations
8
+
6
9
  ### v2.4.0 - 2026-09-16 - [View Diff](https://github.com/westonganger/paper_trail-association_tracking/compare/v2.3.0...v2.4.0)
7
10
  - [#59](https://github.com/westonganger/paper_trail-association_tracking/pull/59) - Pass the version object when saving `belongs_to` association rows, so `VersionAssociation` no longer loads the parent version before each INSERT under `belongs_to_required_by_default`
8
11
  - [#56](https://github.com/westonganger/paper_trail-association_tracking/pull/56) - Defer inclusion until after active record has fully loaded
@@ -8,15 +8,6 @@ require "paper_trail_association_tracking/record_trail"
8
8
  require "paper_trail_association_tracking/request"
9
9
  require "paper_trail_association_tracking/paper_trail"
10
10
 
11
- if defined?(Rails)
12
- require "paper_trail_association_tracking/frameworks/rails/railtie"
13
- else
14
- ActiveSupport.on_load(:active_record) do
15
- require "paper_trail/frameworks/active_record"
16
- require "paper_trail_association_tracking/frameworks/active_record"
17
- end
18
- end
19
-
20
11
  module PaperTrailAssociationTracking
21
12
  def self.version
22
13
  VERSION
@@ -56,3 +47,12 @@ module PaperTrail
56
47
  end
57
48
  end
58
49
  end
50
+
51
+ if defined?(Rails)
52
+ require "paper_trail_association_tracking/frameworks/rails/railtie"
53
+ else
54
+ ActiveSupport.on_load(:active_record) do
55
+ require "paper_trail/frameworks/active_record"
56
+ require "paper_trail_association_tracking/frameworks/active_record"
57
+ end
58
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PaperTrailAssociationTracking
4
- VERSION = "2.4.0".freeze
4
+ VERSION = "2.4.1".freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paper_trail-association_tracking
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Weston Ganger