mirror of
https://github.com/discourse/discourse.git
synced 2024-12-30 08:43:53 +08:00
05b8ff436c
This will help to enforce a consistent pattern for creating service actions. This patch also namespaces actions and policies, making everything related to a service available directly in `app/services/<concept-name>`, making things more consistent at that level too.
14 lines
179 B
Ruby
14 lines
179 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Service::ActionBase
|
|
extend Dry::Initializer
|
|
|
|
def self.call(...)
|
|
new(...).call
|
|
end
|
|
|
|
def call
|
|
raise "Not implemented"
|
|
end
|
|
end
|