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 +1 -1
- data/auditing.gemspec +1 -1
- data/lib/auditing/base.rb +4 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.3
|
data/auditing.gemspec
CHANGED
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
|
-
:
|
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)
|