提交 d688814a 编写于 作者: A Akira Matsuda

beginrescueend

上级 033f6540
......@@ -38,11 +38,9 @@ def assert_valid_value(obj)
private
def check_arity_of_constructor
begin
load(nil)
rescue ArgumentError
raise ArgumentError, "Cannot serialize #{object_class}. Classes passed to `serialize` must have a 0 argument constructor."
end
load(nil)
rescue ArgumentError
raise ArgumentError, "Cannot serialize #{object_class}. Classes passed to `serialize` must have a 0 argument constructor."
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册