Skip to content

Commit fada4dc

Browse files
committed
Fix typo in fieldset exception
1 parent b594d14 commit fada4dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_model/serializer/fieldset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def parsed_fields
2626
raw_fields.inject({}) { |h, (k, v)| h[k.to_sym] = v.map(&:to_sym); h }
2727
elsif raw_fields.is_a?(Array)
2828
if root.nil?
29-
raise ArgumentError, 'The root argument must be specified if the fileds argument is an array.'
29+
raise ArgumentError, 'The root argument must be specified if the fields argument is an array.'
3030
end
3131
hash = {}
3232
hash[root.to_sym] = raw_fields.map(&:to_sym)

0 commit comments

Comments
 (0)