instance method
copy_defaults
Ruby on Rails 8.0.4
Since v7.2.3 PrivateSignature
copy_defaults(target)
No documentation comment.
Parameters
-
targetreq
Source
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 418
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 418
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::HashWithIndifferentAccess