Sha256: 414206349480a926706fd2e828d33e957c44c07ac060467f0436de59f3c427e3
Contents?: true
Size: 365 Bytes
Versions: 58
Compression:
Stored size: 365 Bytes
Contents
module Hyrax module Lockable extend ActiveSupport::Concern def acquire_lock_for(lock_key, &block) lock_manager.lock(lock_key, &block) end def lock_manager @lock_manager ||= LockManager.new( Hyrax.config.lock_time_to_live, Hyrax.config.lock_retry_count, Hyrax.config.lock_retry_delay ) end end end
Version data entries
58 entries across 58 versions & 2 rubygems