Answers for "what is a service object"

0

object service

# real use in controller
def destroy
  @result = YourService.call(first, second)
  if @result.success?
    #...
  else
    #...
  end
end
Posted by: Guest on October-23-2021

Browse Popular Code Answers by Language