Welcome to mirror list, hosted at ThFree Co, Russian Federation.

reactive_service.rb « concerns « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e1f868a299bbb820b44092042f6500b8d23dffdb (plain)
1
2
3
4
5
6
7
8
9
10
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