module ServiceActor::Failable
Adds the `fail_on` DSL to actors. This allows you to call `.result` and get back a failed actor instead of raising an exception.
class ApplicationActor < Actor fail_on ServiceActor::ArgumentError end
Public Class Methods
included(base)
click to toggle source
# File lib/service_actor/failable.rb, line 11 def self.included(base) base.extend(ClassMethods) base.prepend(PrependedMethods) end