method

copy_defaults

rails latest stable - Class: ActiveSupport::HashWithIndifferentAccess

Method not available on this version

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

copy_defaults(target)
private

No documentation available.

# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 419
      def copy_defaults(target)
        if default_proc
          target.default_proc = default_proc.dup
        else
          target.default = default
        end
        target
      end