diff options
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/lookup_context.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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] |