e75b1f1105
Use ReactiveCaching to update external CI status asynchronously See https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2055
10 lines
262 B
Ruby
10 lines
262 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
|