Skip to content
Snippets Groups Projects
Commit 00392d3c authored by alpaca-tc's avatar alpaca-tc Committed by Eugen
Browse files

ActiveRecord::NotFound is not defined (#1864)

parent 28606d73
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ class Api::OEmbedController < ApiController
def stream_entry_from_url(url)
params = Rails.application.routes.recognize_path(url)
raise ActiveRecord::NotFound unless params[:controller] == 'stream_entries' && params[:action] == 'show'
raise ActiveRecord::RecordNotFound unless params[:controller] == 'stream_entries' && params[:action] == 'show'
StreamEntry.find(params[:id])
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment