Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #9703: comment_correction_for_buffered_logger_mutation_note.2.diff

File comment_correction_for_buffered_logger_mutation_note.2.diff, 0.7 kB (added by tomafro, 1 year ago)

same patch, but with tiny spelling correction

  • activesupport/lib/active_support/buffered_logger.rb

    old new  
    5252    def add(severity, message = nil, progname = nil, &block) 
    5353      return if @level > severity 
    5454      message = message || (block && block.call) || progname 
    55       # If a newline is nessesary then create a new message end with a new line. 
     55      # If a newline is necessary then create a new message ending with a newline. 
    5656      # Ensures that the original message is not mutated. 
    5757      message = "#{message}\n" unless message[-1] == ?\n 
    5858      @buffer << message