Return StatusFinder to its original state

This commit is contained in:
Alex Gleason 2020-02-21 14:25:34 -06:00
parent a925509384
commit 82d476227c
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
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 '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