instance method copy_defaults

Ruby on Rails 8.1.2

Since v7.2.3 Private

Available in: v7.2.3 v8.0.4 v8.1.2

Signature

copy_defaults(target)

No documentation comment.

Parameters

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

Defined in activesupport/lib/active_support/hash_with_indifferent_access.rb line 438 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::HashWithIndifferentAccess

Type at least 2 characters to search.

↑↓ navigate · open · esc close