Sha256: 27b67e344a804d06d262baed6df8ea2f071e84e7862916dd066bdd2a3f221860

Contents?: true

Size: 812 Bytes

Versions: 5

Compression:

Stored size: 812 Bytes

Contents

# frozen_string_literal: true

# Admin::ImportDocumentsController
#
# This controller handles the import documents within the admin namespace.
# It inherits from Admin::AdminController and provides actions related to
# import documents.
module Admin
  class ImportDocumentsController < Admin::AdminController
    # Before action callback to set the import document for the show action.
    before_action :set_import_document, only: %i[show]

    # GET /admin/import_documents/:id
    #
    # Displays a specific import document.
    def show
    end

    private

    # Sets the import document based on the ID provided in the parameters.
    #
    # @return [ImportDocument] the import document found by ID
    def set_import_document
      @import_document = ImportDocument.find(params[:id])
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
geoblacklight_admin-0.7.0 app/controllers/admin/import_documents_controller.rb
geoblacklight_admin-0.6.3 app/controllers/admin/import_documents_controller.rb
geoblacklight_admin-0.6.2 app/controllers/admin/import_documents_controller.rb
geoblacklight_admin-0.6.1 app/controllers/admin/import_documents_controller.rb
geoblacklight_admin-0.6.0 app/controllers/admin/import_documents_controller.rb