From fada4dcb082ecbc7f8e16e9d245bbb91d0531b4b Mon Sep 17 00:00:00 2001 From: Ville Lautanala Date: Sat, 12 Sep 2015 18:55:20 +0300 Subject: [PATCH] Fix typo in fieldset exception --- lib/active_model/serializer/fieldset.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/active_model/serializer/fieldset.rb b/lib/active_model/serializer/fieldset.rb index 935aea81..9d1f8ae3 100644 --- a/lib/active_model/serializer/fieldset.rb +++ b/lib/active_model/serializer/fieldset.rb @@ -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)