class ActiveModel::Error

def ==(other) # :nodoc:

:nodoc:
def ==(other) # :nodoc:
  other.is_a?(self.class) && attributes_for_hash == other.attributes_for_hash
end