easy_reference_data 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +6 -0
- data/lib/easy/reference_data/refresh.rb +6 -0
- data/lib/easy/reference_data/version.rb +1 -1
- metadata +1 -1
data/ChangeLog
CHANGED
@@ -11,6 +11,12 @@ module Easy
|
|
11
11
|
record.send "#{key}=", value
|
12
12
|
end
|
13
13
|
|
14
|
+
if record.new_record?
|
15
|
+
puts " creating #{clazz}(#{unique_attribute_value})"
|
16
|
+
elsif record.changed?
|
17
|
+
puts " updating #{clazz}(#{unique_attribute_value})"
|
18
|
+
end
|
19
|
+
|
14
20
|
begin
|
15
21
|
record.save!
|
16
22
|
rescue
|