Skip to content
Browse files

Added more logging

  • Loading branch information...
1 parent 2e92d87 commit 0c0867d4b518f64355d6bc397a320d8b137f69bf @jyurek jyurek committed Aug 4, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/paperclip.rb
View
2 lib/paperclip.rb
@@ -228,12 +228,14 @@ def each_attachment
end
def save_attached_files
+ logger.info("[paperclip] Saving attachments.")
each_attachment do |name, attachment|
attachment.send(:save)
end
end
def destroy_attached_files
+ logger.info("[paperclip] Deleting attachments.")
each_attachment do |name, attachment|
attachment.send(:queue_existing_for_delete)
attachment.send(:flush_deletes)

0 comments on commit 0c0867d

Please sign in to comment.
Something went wrong with that request. Please try again.