Add the ability to return a block on `call` method
Closed this issue · 0 comments
jonatasdaniel commented
Add the ability to return a block on call
method.
MyInteractorClass.new.call do |result|
if result.success?
# do something
else
# show errors
end
end