jeremyw-paper_trail 1.2.8 → 1.2.9

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.8
1
+ 1.2.9
@@ -71,7 +71,7 @@ class Version < ActiveRecord::Base
71
71
  private
72
72
 
73
73
  def set_user_id
74
- self.user_id = self.whodunnit.to_i if self.whodunnit.to_s =~ /^\d+$/
74
+ self.user_id = self.whodunnit.id if self.whodunnit.is_a?(ActiveRecord::Base)
75
75
  return true
76
76
  end
77
77
  end
data/paper_trail.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{paper_trail}
5
- s.version = "1.2.8"
5
+ s.version = "1.2.9"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Andy Stewart", "Jeremy Weiskotten", "Joe Lind"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jeremyw-paper_trail
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.8
4
+ version: 1.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Stewart