Class: Athar::DeletionsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/athar/deletions_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



5
6
7
8
9
10
11
12
# File 'app/controllers/athar/deletions_controller.rb', line 5

def show
  @deletion = Athar::Deletion.find_by(id: params[:id])

  head(:not_found) and return unless @deletion

  @registry = Athar::Dashboard::ModelRegistry.discover
  @registry_by_id = @registry.index_by { |model| [model.schema, model.table] }
end