From 5b6d6bbd006515d621813517f322ff04ab68b482 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Fri, 4 Dec 2020 13:29:07 +0100 Subject: [PATCH] Explain ApplicationService --- app/services/application_service.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/services/application_service.rb b/app/services/application_service.rb index 6185f03..401fe02 100644 --- a/app/services/application_service.rb +++ b/app/services/application_service.rb @@ -1,4 +1,6 @@ class ApplicationService + # This enables executing a service's `#call` method directly via + # `MyService.call(args)`, without creating a class instance it first. def self.call(*args, &block) new(*args, &block).call end