instance method assign_deprecated_option

Ruby on Rails 8.1.2

Since v8.1.2 Private

Signature

assign_deprecated_option(deprecated_options, key, method_name)

No documentation comment.

Parameters

deprecated_options req
key req
method_name req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close