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