Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

For "Assigning <file> to attr" log message, .inspect instead of impli…

…cit .to_s so nil assignments don't look ass ("Assigning to attr" instead of "Assigning nil to attr").
  • Loading branch information...
commit 87d700dd354a271f626ecd0ac9d0dcccaf3bf557 1 parent 071dc59
@henrik henrik authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/paperclip/attachment.rb
View
2  lib/paperclip/attachment.rb
@@ -58,7 +58,7 @@ def assign uploaded_file
end
return nil unless valid_assignment?(uploaded_file)
- logger.info("[paperclip] Assigning #{uploaded_file} to #{name}")
+ logger.info("[paperclip] Assigning #{uploaded_file.inspect} to #{name}")
queue_existing_for_delete
@errors = []
Please sign in to comment.
Something went wrong with that request. Please try again.