lib/gooddata/models/metadata/report_definition.rb in gooddata-0.6.12 vs lib/gooddata/models/metadata/report_definition.rb in gooddata-0.6.13
- old
+ new
@@ -299,9 +299,11 @@
def replace(what, for_what = nil)
pairs = if what.is_a?(Hash)
whats = what.keys
to_whats = what.values
whats.zip(to_whats)
+ elsif what.is_a?(Array) && for_what.is_a?(Array)
+ whats.zip(to_whats)
else
[[what, for_what]]
end
pairs.each do |pair|