跳至内容 跳至搜索
方法
N

属性

[R] inner_error

类公共方法

new(base, inner_error, override_options = {})

# 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