From c80b33a46123f54339dbc94c78e1bbed222cd9af Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Mon, 18 Mar 2019 16:10:13 -0700 Subject: Rename invalid_types to invalid_values --- actionview/lib/action_view/lookup_context.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actionview/lib') diff --git a/actionview/lib/action_view/lookup_context.rb b/actionview/lib/action_view/lookup_context.rb index 8d92130957..336eaa0d8b 100644 --- a/actionview/lib/action_view/lookup_context.rb +++ b/actionview/lib/action_view/lookup_context.rb @@ -284,9 +284,9 @@ module ActionView values.concat(default_formats) if values.delete "*/*" values.uniq! - invalid_types = (values - Template::Types.symbols) - unless invalid_types.empty? - raise ArgumentError, "Invalid formats: #{invalid_types.map(&:inspect).join(", ")}" + invalid_values = (values - Template::Types.symbols) + unless invalid_values.empty? + raise ArgumentError, "Invalid formats: #{invalid_values.map(&:inspect).join(", ")}" end if values == [:js] -- cgit v1.2.3