Fixed bug: Resources get updated (only updated_at) even if not needed.
This commit is contained in:
parent
7c531aa27a
commit
8aed86bbf0
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue