From 499bf9eb69a6a86bd3bf8381624e489472202b8b Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Sat, 17 Aug 2019 01:21:33 -0400 Subject: [PATCH] Updated status_finder to check for home#index for updated status route check previous commit: dcb0572 this enables status embeding to work fully --- 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 4d1aed29..abc55887 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 'statuses' + when 'home' Status.find(recognized_params[:id]) else raise ActiveRecord::RecordNotFound @@ -29,7 +29,7 @@ class StatusFinder end def verify_action! - unless recognized_params[:action] == 'show' + unless recognized_params[:action] == 'show' || recognized_params[:action] == 'index' raise ActiveRecord::RecordNotFound end end