Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
For "Assigning <file> to attr" log message, .inspect instead of impli…
Browse files Browse the repository at this point in the history
…cit .to_s so nil assignments don't look ass ("Assigning to attr" instead of "Assigning nil to attr").
  • Loading branch information
henrik committed Aug 1, 2008
1 parent 071dc59 commit 87d700d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip/attachment.rb
Expand Up @@ -58,7 +58,7 @@ def assign uploaded_file
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 = []
Expand Down

0 comments on commit 87d700d

Please sign in to comment.