Class: ActiveModel::Errors

Inherits:
Object
  • Object
show all
Defined in:
lib/gem_ext/active_model/errors.rb

Instance Method Summary collapse

Instance Method Details

#merge!(other) ⇒ Object



5
6
7
8
# File 'lib/gem_ext/active_model/errors.rb', line 5

def merge!(other)
  @messages.merge!(other.messages) { |_, ary1, ary2| ary1 + ary2 }
  @details.merge!(other.details) { |_, ary1, ary2| ary1 + ary2 }
end