audited 5.0.0 → 5.0.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of audited might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52f7d297a07e673c3f45866a6ec8cb02c6228cdd6c1c0f7d1043c5eacfd104e2
4
- data.tar.gz: 2776fa266fb211bfc0c0d939fd001d862408196cd0e902e0417f8a3696ee4ba1
3
+ metadata.gz: f924caa522dc6d65c88066c2d28416dfcef844efa85bdef056da226db12a8984
4
+ data.tar.gz: 63bdef3cd4aefea080eb36e6b7c394f5d97b465e3376027a68e3c28f1b278d5c
5
5
  SHA512:
6
- metadata.gz: 172a29b25cdb1dfdf5c04ce42448e7ba1b864347a7783fb06bdbc277f4fa3dfe18d75c03d37ee7fd2ad93e2a78d9a34b02a8d08c67a0f46518c202d2b3534ec2
7
- data.tar.gz: 8b86c7befab204c98b72f81f8227991d821c4f173d32191e256cdad0bb4cd997bc9c0c7715bacae03539a919ec57cb25e6911e855f38845bd7389318fab9fcba
6
+ metadata.gz: acbc5581e27594c84ad817ac7e2f90e02d34786106689a943177552890205d4acfaa5a7ac5489b1a0fbdbc5196028d462e4540d5253ee78b2612bc8f03abfcad
7
+ data.tar.gz: 532724043c0c57659a3c3f3d0eaf21c832a6c3863a8607bb802d882bf13b4579e8b051265e6c4082a51bdbc2291f7466508e03c7cb67df90bda6b8c234a6d7a4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Audited ChangeLog
2
2
 
3
+ ## 5.0.1 (2021-06-11)
4
+
5
+ Improved
6
+
7
+ - Don't load associated model when auditing is disabled - @nut4k1
8
+ [#584](https://github.com/collectiveidea/audited/pull/584)
9
+
3
10
  ## 5.0.0 (2021-06-10)
4
11
 
5
12
  Improved
@@ -308,10 +308,11 @@ module Audited
308
308
  end
309
309
 
310
310
  def write_audit(attrs)
311
- attrs[:associated] = send(audit_associated_with) unless audit_associated_with.nil?
312
311
  self.audit_comment = nil
313
312
 
314
313
  if auditing_enabled
314
+ attrs[:associated] = send(audit_associated_with) unless audit_associated_with.nil?
315
+
315
316
  run_callbacks(:audit) {
316
317
  audit = audits.create(attrs)
317
318
  combine_audits_if_needed if attrs[:action] != "create"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Audited
4
- VERSION = "5.0.0"
4
+ VERSION = "5.0.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audited
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Keepers
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2021-06-10 00:00:00.000000000 Z
16
+ date: 2021-06-11 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: activerecord