audit-log 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: 53d84b5630a7c9f749caa8d66d6f14de6bf98c8fd6341bb1abb552f3b9355cdc
4
- data.tar.gz: 683b90bb6df772855a53e9d21c5c97f0e7ce5d12e7d933ff5931d6dd5caaeb1b
3
+ metadata.gz: 8d1c83f045e85301b4c782233b33f8fbc4ce1b1519bb13475676800d0e4c454f
4
+ data.tar.gz: 253c12657530a991f595a1091eca8e1282c3793df7d03dad5ca68c91af5e69e7
5
5
  SHA512:
6
- metadata.gz: a45f0115b7a154598ae5d92ae4ee34268d33757f7201f3fee155e41e084dde12016c7778b69cd1ba25597aacd47c87d1889b9cb977ca5c59e8996c130497298c
7
- data.tar.gz: 6a032c5c485609ad6b85421d52b5ec3fce29bcf3d3218344a0121c26092ec94cb5904aa1af32b1eff093e9b453aa0a71e507a9b62972d1a5319a4d6410043e79
6
+ metadata.gz: c8fe2cd5f6e298362c5c48db77471601f7486954e8abebffbdc0ae0801c442a51775c24aaead0abd90c740565a268f490403d34699bda96c468cd263567308a5
7
+ data.tar.gz: 6eac49f24696111571c41986cf649873782644d903cc2994df4535f7b9f29f663ed9520e2aed3778465754761885b7bdc8848b3b1ff56d72521ea34f49842a93
data/README.md CHANGED
@@ -82,8 +82,8 @@ end
82
82
  In models or other places:
83
83
 
84
84
  ```rb
85
- AuditLog.audit!(:update_password, @user, payload: { ip: request.ip })
86
- AuditLog.audit!(:sign_in, @user, payload: { ip: request.ip })
85
+ AuditLog.audit!(:update_password, @user, payload: { ip: request.remote_ip })
86
+ AuditLog.audit!(:sign_in, @user, payload: { ip: request.remote_ip })
87
87
  AuditLog.audit!(:create_address, nil, payload: params)
88
88
  ```
89
89
 
@@ -27,7 +27,8 @@ module AuditLog
27
27
  request_info = {}
28
28
  if request
29
29
  request_info = {
30
- ip: request.ip,
30
+ request_id: request.request_id,
31
+ ip: request.remote_ip,
31
32
  url: request.url,
32
33
  user_agent: request.user_agent
33
34
  }
@@ -1,3 +1,3 @@
1
1
  module AuditLog
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audit-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee