audit_record 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/audit_record.gemspec +1 -1
- data/lib/auditable/audit_record_sweeper.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/audit_record.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
class AuditRecordSweeper < ActionController::Caching::Sweeper
|
2
2
|
observe AuditRecord
|
3
3
|
def before_create(audit_record)
|
4
|
-
audit_record.
|
4
|
+
audit_record.user_id ||= current_user.id
|
5
5
|
audit_record.remote_address = controller.try(:request).try(:ip)
|
6
6
|
end
|
7
7
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: audit_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -309,7 +309,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
309
309
|
version: '0'
|
310
310
|
segments:
|
311
311
|
- 0
|
312
|
-
hash:
|
312
|
+
hash: 102251841302440084
|
313
313
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
314
314
|
none: false
|
315
315
|
requirements:
|