effective_logging 3.0.9 → 3.0.10

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
  SHA256:
3
- metadata.gz: 87ea6d6a2184d29eec7b23d56bde3f84c17f16b8f6058a9823849c5ee56edc50
4
- data.tar.gz: 0bb7c7040965bc8bb4587a1668d01902b4c85d26c574269b7b130a41325a570e
3
+ metadata.gz: ced9c07cb086b859429b90b1ccbac95ae8e201b775bcd583b3d289004289094d
4
+ data.tar.gz: 7411b720f373bc75ad92be98649481daefc15755d972835909e65d272d243b40
5
5
  SHA512:
6
- metadata.gz: 4c7d6f2d933d8774ebc5142a3e171e03178d5918a392635db966c9aa88b0d6d19127520d644fa2f43733cefc514bb31fb23d68dc542c99133b90922cf5aaa213
7
- data.tar.gz: 8914c55bdfbe4e3951e25152c095656c2fb649ebd91d3cceca73191b16177f45db31a14339c42363d223a571cefcf9bf1644f7c9683de43d001ea3ff371a6c8b
6
+ metadata.gz: caef27d98294627b0a21fa7d6dee8ab0d08d86e8297eddcbfcc403724bbfb75ca79b317192ee96ef744704e88fd03a04b41a913289c7a6e1c92753a140640a38
7
+ data.tar.gz: 579cabf40e8107f4a44c23da05e87c7d6887c4e7604b265475a8a4ae6769f99ce421e3e358df70f1d56935e06724254ceebec651cf8a41f5935811d44ad5cff2
data/README.md CHANGED
@@ -197,6 +197,12 @@ This logging includes the resource's base attributes, all autosaved associations
197
197
 
198
198
  It will recurse through all accepts_nested_attributes has_many's and handle any number of child objects.
199
199
 
200
+ Add to your application controller:
201
+
202
+ ```
203
+ around_action :set_effective_logging_current_user
204
+ ```
205
+
200
206
  Add to your model:
201
207
 
202
208
  ```ruby
@@ -371,4 +377,3 @@ MIT License. Copyright [Code and Effect Inc.](http://www.codeandeffect.com/)
371
377
  4. Push to the branch (`git push origin my-new-feature`)
372
378
  5. Bonus points for test coverage
373
379
  6. Create new Pull Request
374
-
@@ -7,9 +7,9 @@ module EffectiveLogging
7
7
 
8
8
  def set_effective_logging_current_user
9
9
  EffectiveLogging.current_user = current_user
10
+ yield if block_given?
10
11
  end
11
12
 
12
13
  end
13
14
  end
14
15
  end
15
-
@@ -1,3 +1,3 @@
1
1
  module EffectiveLogging
2
- VERSION = '3.0.9'.freeze
2
+ VERSION = '3.0.10'.freeze
3
3
  end
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.0.9
4
+ version: 3.0.10
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: 2020-08-13 00:00:00.000000000 Z
11
+ date: 2020-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails