lib/pickle/session/parser.rb in pickle-0.5.0 vs lib/pickle/session/parser.rb in pickle-0.5.1
- old
+ new
@@ -16,12 +16,12 @@
if session && field =~ /^(\w+): #{capture_model}$/
{$1 => session.model!($2)}
else
parse_field_without_model(field)
end
- end
-
+ end
+
def parse_hash(hash)
hash.inject({}) do |parsed, (key, val)|
if session && val =~ /^#{capture_model}$/
parsed.merge(key => session.model($1))
else
@@ -29,6 +29,6 @@
end
end
end
end
end
-end
\ No newline at end of file
+end