lib/zendesk_api/collection.rb in zendesk_api-1.2.3 vs lib/zendesk_api/collection.rb in zendesk_api-1.2.4
- old
+ new
@@ -326,10 +326,10 @@
return self unless @resources
result = true
@resources.map! do |item|
- if item.respond_to?(method) && item.changed?
+ if item.respond_to?(method) && !item.destroyed? && item.changed?
result &&= item.send(method)
end
item
end