lib/acfs/model/persistence.rb in acfs-0.22.0 vs lib/acfs/model/persistence.rb in acfs-0.22.1.b192
- old
+ new
@@ -84,10 +84,10 @@
operation (new? ? :create : :update), opts do |data|
update_with data
end
rescue InvalidResource => err
(err.errors || []).each do |field, errors|
- self.errors.set field, errors
+ self.errors.set field.to_sym, errors
end
raise err
end
# @api public