Commit b6dc5b52 authored by jplang's avatar jplang
Browse files

Make sure we can call #values.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 70712158
......@@ -23,7 +23,7 @@ module Redmine
replace arg
elsif arg.is_a?(String)
replace arg.split(',').collect {|s| s.split(':')[0..1]}
elsif arg.is_a?(Hash)
elsif arg.respond_to?(:values)
replace arg.values
elsif arg
raise"SortCriteria#new takes an Array, String or Hash, not a #{}.")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment