Sha256: c22b1ab286c320efc943e5fbece5a5aa05fe8d2e0886463a1f29ab21ec7517bc
Contents?: true
Size: 536 Bytes
Versions: 6
Compression:
Stored size: 536 Bytes
Contents
module Metaractor class Error < StandardError; end class InvalidError < Error; end module HandleErrors def fail_with_error!(**args) context.fail_with_error!(object: self, **args) end def fail_with_errors!(**args) context.fail_with_errors!(object: self, **args) end def add_error(**args) context.add_error(object: self, **args) end def add_errors(**args) context.add_errors(object: self, **args) end def error_messages context.error_messages end end end
Version data entries
6 entries across 6 versions & 1 rubygems