Skip to content

Commit

Permalink
Added more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Yurek committed Aug 4, 2008
1 parent 2e92d87 commit 0c0867d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/paperclip.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 0c0867d

Please sign in to comment.