You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 4. key may be nil for empty collection and no serializer option
50
50
key &&= key.pluralize
51
-
# 5. fail if the key cannot be determined
52
-
key || fail(ArgumentError,'Cannot infer root key from collection type. Please specify the root or each_serializer option, or render a JSON String')
51
+
ifraise_cannot_infer_root_key_error?
52
+
# 5. fail if the key cannot be determined
53
+
key || fail(CannotInferRootKeyError,'Cannot infer root key from collection type. Please specify the root or each_serializer option, or render a JSON String')
0 commit comments