gitlab-org--gitlab-foss/app/models/concerns/reactive_service.rb
2017-02-23 09:31:56 -06:00

10 lines
260 B
Ruby

module ReactiveService
extend ActiveSupport::Concern
included do
include ReactiveCaching
# Default cache key: class name + project_id
self.reactive_cache_key = ->(service) { [service.class.model_name.singular, service.project_id] }
end
end