logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 00392d3c630d7691e3ec92b52e8f91c6c2f6f10a
parent: 28606d730a1edd14b36b07c4d0d14b6d775ae93a
Author: alpaca-tc <alpaca-tc@alpaca.tc>
Date:   Sun, 16 Apr 2017 04:17:59 +0900

ActiveRecord::NotFound is not defined (#1864)


Diffstat:

Mapp/controllers/api/oembed_controller.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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