##// END OF EJS Templates
String#each removed in ruby1.9....
Jean-Philippe Lang -
r2800:4450e6f24b30
parent child
Show More
@@ -20,6 +20,7 module Redmine
20 class UnifiedDiff < Array
20 class UnifiedDiff < Array
21 def initialize(diff, options={})
21 def initialize(diff, options={})
22 options.assert_valid_keys(:type, :max_lines)
22 options.assert_valid_keys(:type, :max_lines)
23 diff = diff.split("\n") if diff.is_a?(String)
23 diff_type = options[:type] || 'inline'
24 diff_type = options[:type] || 'inline'
24
25
25 lines = 0
26 lines = 0
General Comments 0
You need to be logged in to leave comments. Login now