change_log 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/change_log/change_logs.rb +1 -1
- data/lib/change_log/version.rb +1 -1
- metadata +2 -2
@@ -14,7 +14,7 @@ class ChangeLogs < ActiveRecord::Base
|
|
14
14
|
changes.each do |option|
|
15
15
|
record = ChangeLogs.new(option)
|
16
16
|
record.field_type = get_field_type(option[:table_name],option[:attribute_name]) unless option[:action].eql?('DELETE')
|
17
|
-
record.user = option[:user].id unless option[:user].is_a?(String)
|
17
|
+
record.user = option[:user].id unless option[:user].blank? || option[:user].is_a?(String)
|
18
18
|
record.created_at = Time.now
|
19
19
|
records << record
|
20
20
|
end
|
data/lib/change_log/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: change_log
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord-import
|