instance method assign_deprecated_options

Ruby on Rails 8.1.2

Since v8.1.2 Private

Signature

assign_deprecated_options(deprecated_options, options, method_name)

No documentation comment.

Parameters

deprecated_options req
options req
method_name req
Source
# 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

Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 676 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::Routing::Mapper::Base

Type at least 2 characters to search.

↑↓ navigate · open · esc close