effective_logging 1.10.14 → 1.10.15
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0682646a2c7421ae64c51f60d4ab6cd87e1fba68
|
4
|
+
data.tar.gz: fde030b741ec05381269623ef3e9e51e5efb923c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a846b9f6c2e242dbc8415fc851cdf366a9e5c21fadd399262cd9d7b29afa011f4287c93f38cc725c6e696b13dc8e77c4081c25255ff45eb4bb77ad176e0d657a
|
7
|
+
data.tar.gz: 5d535d0026e1adcda96b8e62153104eab7d074661b87b3afac2f7987b1a14eb4e4e4083a97c2daf97ebac28b17b3e2a99509b5524627a8a5c79482a35663a835
|
@@ -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 = ::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
|
-
::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
|
-
::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
|
-
::ActiveRecordLogger.new(self, log_changes_options).updated!
|
40
|
+
::EffectiveLogging::ActiveRecordLogger.new(self, log_changes_options).updated!
|
41
41
|
end
|
42
42
|
|
43
43
|
true
|
@@ -75,7 +75,7 @@ module EffectiveLogging
|
|
75
75
|
title = association.name.to_s.singularize.titleize
|
76
76
|
|
77
77
|
Array(object.send(association.name)).each_with_index do |child, index|
|
78
|
-
@logged = true if ::ActiveRecordLogger.new(child, options.merge(logger: logger, depth: depth+1, prefix: "#{title} #{index} - #{child} - ")).execute!
|
78
|
+
@logged = true if ::EffectiveLogging::ActiveRecordLogger.new(child, options.merge(logger: logger, depth: depth+1, prefix: "#{title} #{index} - #{child} - ")).execute!
|
79
79
|
end
|
80
80
|
end
|
81
81
|
end
|