varvet/pundit

View on GitHub
lib/pundit/cache_store/null_store.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module Pundit
  module CacheStore
    # @api private
    class NullStore
      @instance = new

      class << self
        attr_reader :instance
      end

      def fetch(*, **)
        yield
      end
    end
  end
end