Commit b256381c by Tom Counsell Committed by Prem Sichanugrist

Fix #947 copying attachments between models should succeed when the attachment is empty

parent a394c73b
......@@ -30,5 +30,5 @@ module Paperclip
end
Paperclip.io_adapters.register Paperclip::NilAdapter do |target|
target.nil?
target.nil? || ( (Paperclip::Attachment === target) && !target.present? )
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment