From c4dc82ef38c466a90607cb9748ed1f826594de4a Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Thu, 8 Aug 2019 12:31:45 +0200 Subject: [PATCH] show periodical single records --- app/controllers/repositories_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index c00904cee..ab2f02484 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -94,7 +94,7 @@ def index end def show - repository = Client.where(symbol: params[:id]).where(deleted_at: nil).where(client_type: "repository").first + repository = Client.where(symbol: params[:id]).where(deleted_at: nil).first fail ActiveRecord::RecordNotFound unless repository.present? options = {}