auditing 1.1.2 → 1.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
- 1.1.2
1
+ 1.1.3
data/auditing.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{auditing}
8
- s.version = "1.1.2"
8
+ s.version = "1.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 = ["Brad Cantin"]
data/lib/auditing/base.rb CHANGED
@@ -48,15 +48,16 @@ module Auditing
48
48
  add_audit(:action => 'added',
49
49
  :association => child_object,
50
50
  :field_name => hash[:field],
51
- :new_value => Marshal.dump(hash[:value]) )
51
+ :old_value => Marshal.dump(nil),
52
+ :new_value => Marshal.dump(hash[:value].to_s) )
52
53
  end
53
54
 
54
55
  def log_association_update(child_object, hash)
55
56
  add_audit(:action => 'updated',
56
57
  :association => child_object,
57
58
  :field_name => hash[:field],
58
- :old_value => Marshal.dump(hash[:old_value]),
59
- :new_value => Marshal.dump(hash[:new_value]) )
59
+ :old_value => Marshal.dump(hash[:old_value].to_s),
60
+ :new_value => Marshal.dump(hash[:new_value].to_s) )
60
61
  end
61
62
 
62
63
  def log_association_destroy(item)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 2
9
- version: 1.1.2
8
+ - 3
9
+ version: 1.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Brad Cantin