Sha256: 48133b6422ee920308e2b91189ef673bf88ede4ca086c3ec5820f61120031c1e
Contents?: true
Size: 537 Bytes
Versions: 3
Compression:
Stored size: 537 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
metaractor-3.3.4 | lib/metaractor/handle_errors.rb |
metaractor-3.3.3 | lib/metaractor/handle_errors.rb |
metaractor-3.3.2 | lib/metaractor/handle_errors.rb |