class method self.new

Ruby on Rails 8.0.4

Since v6.1.7.10

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

self.new(base, inner_error, override_options = {})

No documentation comment.

Parameters

base req
inner_error req
override_options opt = {}
Source
# File activemodel/lib/active_model/nested_error.rb, line 8
    def initialize(base, inner_error, override_options = {})
      @base = base
      @inner_error = inner_error
      @attribute = override_options.fetch(:attribute) { inner_error.attribute }
      @type = override_options.fetch(:type) { inner_error.type }
      @raw_type = inner_error.raw_type
      @options = inner_error.options
    end

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

Defined in ActiveModel::NestedError

Type at least 2 characters to search.

↑↓ navigate · open · esc close