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 CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/audit_record.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "audit_record"
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mark Daggett"]
@@ -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.user ||= current_user
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.2
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: 697361632597582040
312
+ hash: 102251841302440084
313
313
  required_rubygems_version: !ruby/object:Gem::Requirement
314
314
  none: false
315
315
  requirements: