Class: ActiveModel::Errors

Inherits:
Object
  • Object
show all
Defined in:
lib/business_flow/compat.rb

Overview

Amend the errors class with a convenience method.

Instance Method Summary collapse

Instance Method Details

#merge!(other) ⇒ Object



21
22
23
24
25
# File 'lib/business_flow/compat.rb', line 21

def merge!(other)
  other.each do |attribute, message|
    self[attribute] << message
  end
end