lib/pickle/session/parser.rb in pickle-0.3.5 vs lib/pickle/session/parser.rb in pickle-0.4.0
- old
+ new
@@ -12,10 +12,10 @@
"(?:\\w+: (?:#{match_model}|#{match_value}))"
end
def parse_field_with_model(field)
if session && field =~ /^(\w+): #{capture_model}$/
- {$1 => session.model($2)}
+ {$1 => session.model!($2)}
else
parse_field_without_model(field)
end
end
\ No newline at end of file