effective_logging 1.10.14 → 1.10.15

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: 29f890fe99ddcca053f1bdc9fe22abb22e70ee8f
4
- data.tar.gz: 10cd24499439b48b1aed1dcdc23c11a64e29c029
3
+ metadata.gz: 0682646a2c7421ae64c51f60d4ab6cd87e1fba68
4
+ data.tar.gz: fde030b741ec05381269623ef3e9e51e5efb923c
5
5
  SHA512:
6
- metadata.gz: 83217d81e6044183117963b563b96d5d0ad9b59849bc2f8c81f5801773e6cfa38ebf5cbc45bb836455f15ff8fe7ae01f99a90743d2fd925ac28a325ace99c851
7
- data.tar.gz: 6d9bd061e74e7ee63db8c46349c316782b3a638ba9be8539839629d688f3d1a45d163503262aab8dbcccb876b31b335b43b969729e1a838712a1d626d26672cc
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
@@ -1,3 +1,5 @@
1
+ require 'effective_logging/active_record_logger'
2
+
1
3
  module EffectiveLogging
2
4
  class Engine < ::Rails::Engine
3
5
  engine_name 'effective_logging'
@@ -1,3 +1,3 @@
1
1
  module EffectiveLogging
2
- VERSION = '1.10.14'.freeze
2
+ VERSION = '1.10.15'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.14
4
+ version: 1.10.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect