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...
1 parent 071dc59 commit 87d700dd354a271f626ecd0ac9d0dcccaf3bf557 @henrik henrik committed Aug 1, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/paperclip/attachment.rb
@@ -58,7 +58,7 @@ def assign uploaded_file
return nil unless valid_assignment?(uploaded_file)
-"[paperclip] Assigning #{uploaded_file} to #{name}")
+"[paperclip] Assigning #{uploaded_file.inspect} to #{name}")
@errors = []

0 comments on commit 87d700d

Please sign in to comment.