discourse/lib/service/policy_base.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
270 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class Service::PolicyBase
attr_reader :context
delegate :guardian, to: :context
def initialize(context)
@context = context
end
def call
raise "Not implemented"
end
def reason
raise "Not implemented"
end
end