Fixed bug: Resources get updated (only updated_at) even if not needed.

This commit is contained in:
Thorsten Eckel 2017-04-19 16:29:01 +02:00
parent 7c531aa27a
commit 8aed86bbf0

View file

@ -75,6 +75,12 @@ module Import
@resource.assign_attributes(resource)
# the return value here is kind of misleading
# and should not be trusted to indicate if a
# resource was actually updated.
# Use .action instead
return true if !attributes_changed?
return true if @dry_run
@resource.save
true