xls_porter 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/xls_porter.rb +2 -1
- metadata +1 -1
data/lib/xls_porter.rb
CHANGED
@@ -77,8 +77,9 @@ module XlsPorter
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
puts "Record ID:#{record.id} new? #{record.new_record?} persisted? #{record.persisted?}"
|
80
|
+
puts "Record changes #{record.change.inspect}"
|
80
81
|
#track all updates
|
81
|
-
|
82
|
+
if not record.changed.empty?
|
82
83
|
begin
|
83
84
|
if record.save
|
84
85
|
puts "Record #{record.class}:#{record.id} saved #{record.persisted?}"
|