audit_log 0.0.11 → 0.0.12

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
  SHA1:
3
- metadata.gz: 79d2ed81a3a3bafe6066841bc0e79921e807ee91
4
- data.tar.gz: bb8bb2c24faa738f0dacf5439548c4b9fc35bf84
3
+ metadata.gz: 3d9a1e6a1b7f431eadcfd7bb83d38b5de98e3f59
4
+ data.tar.gz: 1671782c7e761d8b00fa55ef83dd64ac0deec928
5
5
  SHA512:
6
- metadata.gz: cc4acc6832af0c7232fb03b5b80e1723e5c785514f2b3ca9a6c75bd81c39078058ec24cc77589d993355df4c3cd3cc60dbee9403977027ee4316b75750b90f7a
7
- data.tar.gz: 16823f8414e6f51d39d0079ab9db4f4e44b95ad861a225a9d7ea7d63c3dc3108ab6b480dc5d42ddf7bb4d43b42c25dc171792cb5eae3355792d8c8f75b412794
6
+ metadata.gz: ceb6a91ea503073e548fa7fc5cdf94f4cce76158f8e518ce01e4aa04074031a6aead8af67dc4fc0eb0c8919b4d95f1519ccbeb3994230c244327808814772563
7
+ data.tar.gz: c29ccf0172e7e2cb1375eeac4c12a8428af31aebdce00c42302efde471daae3a90ee9e4901e97a3ceb07fec0cb01aa7fa19f0a2e03d2d888eb2f5168a8bd8173
@@ -15,7 +15,7 @@ class AuditedModelsObserver < ActiveRecord::Observer
15
15
  if self.controller && self.controller.audited_model == model
16
16
  logged_model = LoggedModel.new(
17
17
  who: self.controller.current_user_for_audit_log ? self.controller.current_user_for_audit_log.id : nil,
18
- what: {id: model.id, event: :create},
18
+ what: YAML.dump({id: model.id, event: :create}),
19
19
  model_class_name: model.class.name,
20
20
  model_id: model.id
21
21
  )
@@ -33,7 +33,7 @@ class AuditedModelsObserver < ActiveRecord::Observer
33
33
 
34
34
  logged_model = LoggedModel.new(
35
35
  who: self.controller.current_user_for_audit_log ? self.controller.current_user_for_audit_log.id : nil,
36
- what: what,
36
+ what: YAML.dump(what),
37
37
  model_class_name: model.class.name,
38
38
  model_id: model.id
39
39
  )
@@ -52,7 +52,7 @@ class AuditedModelsObserver < ActiveRecord::Observer
52
52
 
53
53
  logged_model = LoggedModel.new(
54
54
  who: self.controller.current_user_for_audit_log ? self.controller.current_user_for_audit_log.id : nil,
55
- what: what,
55
+ what: YAML.dump(what),
56
56
  model_class_name: model.class.name,
57
57
  model_id: model.id
58
58
  )
@@ -1,3 +1,3 @@
1
1
  module AuditLog
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audit_log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connectere