instance method set_defaults

Ruby on Rails 4.2.9

Since v4.2.9 Last seen in v4.2.9

Signature

set_defaults(target)

No documentation comment.

Parameters

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

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

Defined in HashWithIndifferentAccess

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close