We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b594d14 commit fada4dcCopy full SHA for fada4dc
lib/active_model/serializer/fieldset.rb
@@ -26,7 +26,7 @@ def parsed_fields
26
raw_fields.inject({}) { |h, (k, v)| h[k.to_sym] = v.map(&:to_sym); h }
27
elsif raw_fields.is_a?(Array)
28
if root.nil?
29
- raise ArgumentError, 'The root argument must be specified if the fileds argument is an array.'
+ raise ArgumentError, 'The root argument must be specified if the fields argument is an array.'
30
end
31
hash = {}
32
hash[root.to_sym] = raw_fields.map(&:to_sym)
0 commit comments