class method self.new

Ruby on Rails 6.1.7.10

Since v6.1.7.10 Last seen in v6.1.7.10

Signature

self.new(content, errors, attribute)

No documentation comment.

Parameters

content req
errors req
attribute req
Source
# File activemodel/lib/active_model/errors.rb, line 639
    def initialize(content, errors, attribute)
      @errors = errors
      @attribute = attribute
      super(content.freeze)
    end

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

Defined in ActiveModel::DeprecationHandlingMessageArray

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