usługa obiektowa
# real use in controller
def destroy
@result = YourService.call(first, second)
if @result.success?
#...
else
#...
end
end
Vi Vu Duc
# real use in controller
def destroy
@result = YourService.call(first, second)
if @result.success?
#...
else
#...
end
end