effective_logging 3.5.1 → 3.5.3
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 +4 -4
- data/app/models/concerns/acts_as_loggable.rb +2 -1
- data/app/views/admin/logs/_layout.html.haml +2 -0
- data/app/views/admin/logs/index.html.haml +3 -2
- data/app/views/admin/logs/show.html.haml +3 -3
- data/app/views/effective/logs/_layout.html.haml +2 -0
- data/app/views/effective/logs/index.html.haml +3 -2
- data/app/views/effective/logs/show.html.haml +3 -2
- data/lib/effective_logging/active_record_logger.rb +1 -1
- data/lib/effective_logging/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29a2f35841f2c300e99ba671235f38282574392f3e0ad58ac1a4b19e78603f51
|
4
|
+
data.tar.gz: 3460cc2ed8dcac7975fe8fe18ed1d111c121499bb540ce1ba587d9420f8d888c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a73c5c23e02b3e230e343f32d185231ad30ac8ec2282cea0481d1943c3b7c8887c7245d09e118f946822aac38e175992450be9d12971fdc68fa1bab65d8b6fc3
|
7
|
+
data.tar.gz: dff10915122c29bf7adc3585550721dcd2ee913c32d9bf7f7443774c44ed367096f227cf0a5e2a6fd0c582f523e2ddcd203323a214836281f6dff41beeef4f2a
|
@@ -69,7 +69,8 @@ module ActsAsLoggable
|
|
69
69
|
end
|
70
70
|
|
71
71
|
def log_changes_datatable
|
72
|
-
|
72
|
+
# We use the changes_to_type and changes_to_id so that the bootstrap3 datatable is still aware of the resources
|
73
|
+
EffectiveLogChangesDatatable.new(changes_to: self, changes_to_type: self.class.name, changes_to_id: id) if persisted?
|
73
74
|
end
|
74
75
|
|
75
76
|
end
|
@@ -3,7 +3,7 @@ module EffectiveLogging
|
|
3
3
|
attr_accessor :object, :resource, :options
|
4
4
|
|
5
5
|
BLANK = "''"
|
6
|
-
BLACKLIST = [:updated_at, :created_at, :encrypted_password, :status_steps] # Don't log changes or attributes
|
6
|
+
BLACKLIST = [:updated_at, :created_at, :encrypted_password, :status_steps, :wizard_steps] # Don't log changes or attributes
|
7
7
|
|
8
8
|
# to, prefix, only, except
|
9
9
|
def initialize(object, args = {})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_logging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -100,8 +100,10 @@ files:
|
|
100
100
|
- app/models/concerns/acts_as_loggable.rb
|
101
101
|
- app/models/effective/log.rb
|
102
102
|
- app/models/effective_logger.rb
|
103
|
+
- app/views/admin/logs/_layout.html.haml
|
103
104
|
- app/views/admin/logs/index.html.haml
|
104
105
|
- app/views/admin/logs/show.html.haml
|
106
|
+
- app/views/effective/logs/_layout.html.haml
|
105
107
|
- app/views/effective/logs/_log.html.haml
|
106
108
|
- app/views/effective/logs/index.html.haml
|
107
109
|
- app/views/effective/logs/show.html.haml
|