Updated status_finder to check for home#index for updated status route

check previous commit: dcb0572

this enables status embeding to work fully
This commit is contained in:
mgabdev 2019-08-17 01:21:33 -04:00
parent 2c9bcc0c2b
commit 499bf9eb69
1 changed files with 2 additions and 2 deletions

View File

@ -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