Sha256: e6c44fac719957da90d50506b466380f81a08b3594d7c4418205a3d14b954be5

Contents?: true

Size: 551 Bytes

Versions: 14

Compression:

Stored size: 551 Bytes

Contents

# frozen_string_literal: true

module Spotlight
  # Extension point for downstream applications to override to
  # check if a delayed job still needs to run
  class ValidityChecker
    # Return a validity token
    # @param [ActiveModel::Model]
    # @return [Object] any serializable object
    def mint(_model); end

    # Check if the token is still valid for the model
    # @param [ActiveModel::Model]
    # @param [Object] the serializable token minted by #mint
    # @return [boolean]
    def check(_model, _token)
      true
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.rc3 app/services/spotlight/validity_checker.rb
blacklight-spotlight-3.0.0.rc2 app/services/spotlight/validity_checker.rb
blacklight-spotlight-3.0.0.rc1 app/services/spotlight/validity_checker.rb
blacklight-spotlight-3.0.0.alpha.10 app/services/spotlight/validity_checker.rb
blacklight-spotlight-3.0.0.alpha.9 app/services/spotlight/validity_checker.rb
blacklight-spotlight-3.0.0.alpha.8 app/services/spotlight/validity_checker.rb
blacklight-spotlight-3.0.0.alpha.7 app/services/spotlight/validity_checker.rb
blacklight-spotlight-3.0.0.alpha.6 app/services/spotlight/validity_checker.rb
blacklight-spotlight-3.0.0.alpha.5 app/services/spotlight/validity_checker.rb
blacklight-spotlight-3.0.0.alpha.4 app/services/spotlight/validity_checker.rb
blacklight-spotlight-3.0.0.alpha.3 app/services/spotlight/validity_checker.rb
blacklight-spotlight-3.0.0.alpha.2 app/services/spotlight/validity_checker.rb
blacklight-spotlight-3.0.0.alpha.1 app/services/spotlight/validity_checker.rb
blacklight-spotlight-2.13.0 app/services/spotlight/validity_checker.rb