method

assign_deprecated_option

assign_deprecated_option(deprecated_options, key, method_name)
private

No documentation available.

# 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