method

assign_deprecated_options

rails latest stable - Class: ActionDispatch::Routing::Mapper::Mapping::Base

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

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