mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Fix typo in fieldset exception
This commit is contained in:
parent
b594d1487b
commit
fada4dcb08
@ -26,7 +26,7 @@ module ActiveModel
|
||||
raw_fields.inject({}) { |h, (k, v)| h[k.to_sym] = v.map(&:to_sym); h }
|
||||
elsif raw_fields.is_a?(Array)
|
||||
if root.nil?
|
||||
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.'
|
||||
end
|
||||
hash = {}
|
||||
hash[root.to_sym] = raw_fields.map(&:to_sym)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user