From: alpaca-tc Date: Sat, 15 Apr 2017 19:17:59 +0000 (+0900) Subject: ActiveRecord::NotFound is not defined (#1864) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=00392d3c630d7691e3ec92b52e8f91c6c2f6f10a;p=mastodon.git ActiveRecord::NotFound is not defined (#1864) --- diff --git a/app/controllers/api/oembed_controller.rb b/app/controllers/api/oembed_controller.rb index 379e910e6..2ea482296 100644 --- a/app/controllers/api/oembed_controller.rb +++ b/app/controllers/api/oembed_controller.rb @@ -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