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-4.3.6 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-4.3.5 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-4.3.4 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-4.3.3 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-4.3.2 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-4.3.1 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-4.3.0 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-4.2.0 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-4.1.2 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-4.1.1 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-4.1.0 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-4.0.3 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-4.0.2 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-4.0.1 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-4.0.0 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-3.6.0.beta10 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-3.6.0.beta9 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-3.6.0.beta8 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-3.6.0.beta7 app/controllers/spotlight/lock_controller.rb
blacklight-spotlight-3.6.0.beta6 app/controllers/spotlight/lock_controller.rb