instance method
assign_deprecated_option
Ruby on Rails 8.1.2
Since v8.1.2 PrivateSignature
assign_deprecated_option(deprecated_options, key, method_name)
No documentation comment.
Parameters
-
deprecated_optionsreq -
keyreq -
method_namereq
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 667
def assign_deprecated_option(deprecated_options, key, method_name)
if (deprecated_value = deprecated_options.delete(key))
ActionDispatch.deprecator.warn(<<~MSG.squish)
#{method_name} received a hash argument #{key}. Please use a keyword instead. Support to hash argument will be removed in Rails 8.2.
MSG
deprecated_value
end
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 667
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Base