gitlab-org--gitlab-foss/app/models/concerns/reactive_service.rb

13 lines
291 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module ReactiveService
extend ActiveSupport::Concern
included do
include ReactiveCaching
# Default cache key: class name + project_id
2017-02-21 18:33:53 -05:00
self.reactive_cache_key = ->(service) { [service.class.model_name.singular, service.project_id] }
end
end