Merge pull request #2297 from vnbrs/patch-1

Remove unnecessary line break from exception message
This commit is contained in:
Benjamin Fleischer
2018-10-24 17:02:19 -05:00
committed by GitHub

View File

@@ -47,8 +47,7 @@ module ActiveModel
# 4. key may be nil for empty collection and no serializer option
key &&= key.pluralize
# 5. fail if the key cannot be determined
key || fail(ArgumentError, 'Cannot infer root key from collection type. Please
specify the root or each_serializer option, or render a JSON String')
key || fail(ArgumentError, 'Cannot infer root key from collection type. Please specify the root or each_serializer option, or render a JSON String')
end
# rubocop:enable Metrics/CyclomaticComplexity