instance method apply_default_array

Ruby on Rails 6.0.6

Since v5.2.8.1 Last seen in v6.0.6 Private

Available in: v5.2.8.1 v6.0.6

Signature

apply_default_array(hash)

No documentation comment.

Parameters

hash req
Source
# File activemodel/lib/active_model/errors.rb, line 554
    def apply_default_array(hash)
      hash.default_proc = proc { |h, key| h[key] = [] }
      hash
    end

Defined in activemodel/lib/active_model/errors.rb line 554 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::Errors

Type at least 2 characters to search.

↑↓ navigate · open · esc close