instance method
assign_deprecated_option
Ruby on Rails edge
Since v8.1.3.1 Private — implementation detail, not part of the public APIAvailable in: v8.1.3.1 edge
Signature
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_options.key?(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_options.delete(key)
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