lib/ratatouille/ratifier.rb in ratatouille-1.4.0 vs lib/ratatouille/ratifier.rb in ratatouille-1.4.2
- old
+ new
@@ -234,10 +234,10 @@
#
# @param [Array] arr
# @param [String,Symbol] namespace
# @return [Array]
def namespace_error_array(arr=[], namespace="")
- errs_out = arr.collect do |e|
+ errs_out = Array(arr).collect do |e|
split_err = e.split("|")
ctxt, err = "", e
ctxt, err = split_err if split_err.size == 2