Sign up for new account via invitation #9
@@ -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
|
||||
|
galfert marked this conversation as resolved
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user
What does this do and what is it for?