Class: ActiveModel::Errors

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

Overview

ActiveModel 5 added details (which we do not use here) and #merge! :reek:MissingSafeMethod Look it’s the API.

Instance Method Summary collapse

Instance Method Details

#merge!(other) ⇒ Object



19
20
21
22
23
# File 'lib/business_flow/compat.rb', line 19

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