Commit 499bf9eb authored by mgabdev's avatar mgabdev

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

check previous commit: dcb05727

this enables status embeding to work fully
parent 2c9bcc0c
...@@ -15,7 +15,7 @@ class StatusFinder ...@@ -15,7 +15,7 @@ class StatusFinder
case recognized_params[:controller] case recognized_params[:controller]
when 'stream_entries' when 'stream_entries'
StreamEntry.find(recognized_params[:id]).status StreamEntry.find(recognized_params[:id]).status
when 'statuses' when 'home'
Status.find(recognized_params[:id]) Status.find(recognized_params[:id])
else else
raise ActiveRecord::RecordNotFound raise ActiveRecord::RecordNotFound
...@@ -29,7 +29,7 @@ class StatusFinder ...@@ -29,7 +29,7 @@ class StatusFinder
end end
def verify_action! def verify_action!
unless recognized_params[:action] == 'show' unless recognized_params[:action] == 'show' || recognized_params[:action] == 'index'
raise ActiveRecord::RecordNotFound raise ActiveRecord::RecordNotFound
end end
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment