aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2019-03-18 16:10:13 -0700
committerJohn Hawthorn <john@hawthorn.email>2019-03-18 16:10:13 -0700
commitc80b33a46123f54339dbc94c78e1bbed222cd9af (patch)
treee252f49b309f4378d0fd22e04d9df787e08eaac6 /actionview/lib
parent663548845b265d97118999eea83bf05a7d41161f (diff)
downloadrails-c80b33a46123f54339dbc94c78e1bbed222cd9af.tar.gz
rails-c80b33a46123f54339dbc94c78e1bbed222cd9af.tar.bz2
rails-c80b33a46123f54339dbc94c78e1bbed222cd9af.zip
Rename invalid_types to invalid_values
Diffstat (limited to 'actionview/lib')
-rw-r--r--actionview/lib/action_view/lookup_context.rb6
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]