diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-10-10 15:19:27 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-10-10 15:19:27 +0000 |
commit | 4450e6f24b30bb11f644dfac23f8bfac0bec1562 (patch) | |
tree | 677403cfb1a79f4a43ad465b0527abe6a42cd8cb /lib | |
parent | 9cd662f8dcb7d8e4bf0775d6eb095f4b2fedd373 (diff) | |
download | redmine-4450e6f24b30bb11f644dfac23f8bfac0bec1562.tar.gz redmine-4450e6f24b30bb11f644dfac23f8bfac0bec1562.zip |
String#each removed in ruby1.9.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2914 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/unified_diff.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/redmine/unified_diff.rb b/lib/redmine/unified_diff.rb index bf4dec335..e66ff217f 100644 --- a/lib/redmine/unified_diff.rb +++ b/lib/redmine/unified_diff.rb @@ -20,6 +20,7 @@ module Redmine class UnifiedDiff < Array def initialize(diff, options={}) options.assert_valid_keys(:type, :max_lines) + diff = diff.split("\n") if diff.is_a?(String) diff_type = options[:type] || 'inline' lines = 0 |