From 82d476227cf29d9c680534beaa376a6a10cb5214 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 21 Feb 2020 14:25:34 -0600 Subject: [PATCH] Return StatusFinder to its original state --- app/lib/status_finder.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/status_finder.rb b/app/lib/status_finder.rb index abc55887..4d1aed29 100644 --- a/app/lib/status_finder.rb +++ b/app/lib/status_finder.rb @@ -15,7 +15,7 @@ class StatusFinder case recognized_params[:controller] when 'stream_entries' StreamEntry.find(recognized_params[:id]).status - when 'home' + when 'statuses' Status.find(recognized_params[:id]) else raise ActiveRecord::RecordNotFound @@ -29,7 +29,7 @@ class StatusFinder end def verify_action! - unless recognized_params[:action] == 'show' || recognized_params[:action] == 'index' + unless recognized_params[:action] == 'show' raise ActiveRecord::RecordNotFound end end