Class: Extension::Models::ValidationError

Inherits:
Object
  • Object
show all
Includes:
SmartProperties
Defined in:
lib/project_types/extension/models/validation_error.rb

Constant Summary collapse

IS_VALIDATION_ERROR_LIST =
-> (errors) do
  errors.is_a?(Array) && errors.all? { |error| IS_VALIDATION_ERROR.call(error) }
end
IS_VALIDATION_ERROR =
-> (error) { error.is_a?(ValidationError) }