diff options
author | alpaca-tc <alpaca-tc@alpaca.tc> | 2017-04-16 04:17:59 +0900 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-15 21:17:59 +0200 |
commit | 00392d3c630d7691e3ec92b52e8f91c6c2f6f10a (patch) | |
tree | b69227ecd1a6317b428c66e78cb470a54ac424b9 | |
parent | 28606d730a1edd14b36b07c4d0d14b6d775ae93a (diff) |
ActiveRecord::NotFound is not defined (#1864)
-rw-r--r-- | app/controllers/api/oembed_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |