Sha256: bebe32f60aab7c5342ca88a200185daca9c9289b11ba25d02cbdfb6e1e209d81

Contents?: true

Size: 308 Bytes

Versions: 24

Compression:

Stored size: 308 Bytes

Contents

# frozen_string_literal: true

module Spotlight
  ##
  # Locking mechanism for page-level locks
  class LockController < Spotlight::ApplicationController
    load_and_authorize_resource

    # DELETE /locks/1
    def destroy
      @lock.destroy

      render plain: '', status: :no_content
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
blacklight-spotlight-3.6.0.beta5 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-3.6.0.beta4 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-3.6.0.beta3 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-3.6.0.beta1 app/controllers/spotlight/lock_controller.rb