method
assign_deprecated_options
v8.1.1 -
Show latest stable
- Class:
ActionDispatch::Routing::Mapper::Mapping::Base
assign_deprecated_options(deprecated_options, options, method_name)private
No documentation available.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 676
def assign_deprecated_options(deprecated_options, options, method_name)
deprecated_options.each do |key, value|
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
options[key] = value
end
end