Commit 87d700dd by Henrik N

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

For "Assigning <file> to attr" log message, .inspect instead of implicit .to_s so nil assignments don't look ass ("Assigning  to attr" instead of "Assigning nil to attr").
parent 071dc598
...@@ -58,7 +58,7 @@ module Paperclip ...@@ -58,7 +58,7 @@ module Paperclip
end end
return nil unless valid_assignment?(uploaded_file) 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 queue_existing_for_delete
@errors = [] @errors = []
......
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