Project

General

Profile

« Previous | Next » 

Revision 2622

Use String#each_line instead of #each (removed in ruby1.9).

View differences:

sandbox/rails-2.3/lib/redmine/unified_diff.rb
25 25
      lines = 0
26 26
      @truncated = false
27 27
      diff_table = DiffTable.new(diff_type)
28
      diff.each do |line|
28
      diff.each_line do |line|
29 29
        if line =~ /^(---|\+\+\+) (.*)$/
30 30
          self << diff_table if diff_table.length > 1
31 31
          diff_table = DiffTable.new(diff_type)

Also available in: Unified diff