lib/pickle/session/parser.rb in pickle-0.7.0 vs lib/pickle/session/parser.rb in pickle-0.7.1

- old
+ new

@@ -22,10 +22,10 @@ "(?:\\w+: (?:#{match_model}|#{match_value}))" end def parse_hash(hash) hash.inject({}) do |parsed, (key, val)| - if session && val =~ /^#{capture_model}$/ + if session && !val.is_a?(Array) && val =~ /^#{capture_model}$/ parsed.merge(key => session.model($1)) else parsed.merge(key => val) end end