Browse Source

ActiveRecord::NotFound is not defined (#1864)

closed-social-glitch-2
alpaca-tc 7 years ago
committed by Eugen
parent
commit
00392d3c63
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/api/oembed_controller.rb

+ 1
- 1
app/controllers/api/oembed_controller.rb View File

@ -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

Loading…
Cancel
Save