BigW Consortium Gitlab

reactive_service.rb 260 Bytes
Newer Older
1 2 3 4 5 6 7
module ReactiveService
  extend ActiveSupport::Concern

  included do
    include ReactiveCaching

    # Default cache key: class name + project_id
8
    self.reactive_cache_key = ->(service) { [service.class.model_name.singular, service.project_id] }
9 10
  end
end