effective_logging 1.10.11 → 1.10.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/acts_as_loggable.rb +4 -4
- data/lib/effective_logging/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e44e648111bd329c41c368d546025c4fae85c097
|
4
|
+
data.tar.gz: 0312d50ae325695af9e6f821e49eef046b1ed91b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b389444b196501c2fc83bb773e8fa3bf098cd9c1fe171638439b74f33edf68fd099ef4994cd7425495c3b1f8782401479e9fbc723948550974605f6af346bbc2
|
7
|
+
data.tar.gz: 8911111100724737c1ef6f24ab8bd6a1013de42e2a7b352633695f5308ef93172574fb8cf43358f58baca612c89680e1455f5822413b2b9cc3b5545c6ca0e0b0
|
@@ -20,7 +20,7 @@ module ActsAsLoggable
|
|
20
20
|
@acts_as_loggable_new_record = new_record?
|
21
21
|
|
22
22
|
unless @acts_as_loggable_new_record
|
23
|
-
@acts_as_loggable_update_record = EffectiveLogging::ActiveRecordLogger.new(self, log_changes_options).execute!
|
23
|
+
@acts_as_loggable_update_record = ::EffectiveLogging::ActiveRecordLogger.new(self, log_changes_options).execute!
|
24
24
|
end
|
25
25
|
|
26
26
|
block.call
|
@@ -29,15 +29,15 @@ module ActsAsLoggable
|
|
29
29
|
|
30
30
|
before_destroy do
|
31
31
|
@acts_as_loggable_destroy_record = true
|
32
|
-
EffectiveLogging::ActiveRecordLogger.new(self, log_changes_options).destroyed!
|
32
|
+
::EffectiveLogging::ActiveRecordLogger.new(self, log_changes_options).destroyed!
|
33
33
|
true
|
34
34
|
end
|
35
35
|
|
36
36
|
after_commit do
|
37
37
|
if @acts_as_loggable_new_record
|
38
|
-
EffectiveLogging::ActiveRecordLogger.new(self, log_changes_options).created!
|
38
|
+
::EffectiveLogging::ActiveRecordLogger.new(self, log_changes_options).created!
|
39
39
|
elsif !@acts_as_loggable_destroy_record && @acts_as_loggable_update_record
|
40
|
-
EffectiveLogging::ActiveRecordLogger.new(self, log_changes_options).updated!
|
40
|
+
::EffectiveLogging::ActiveRecordLogger.new(self, log_changes_options).updated!
|
41
41
|
end
|
42
42
|
|
43
43
|
true
|
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: 1.10.
|
4
|
+
version: 1.10.12
|
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: 2017-06-
|
11
|
+
date: 2017-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|