asciinema.org/app/controllers/application_controller.rb
2011-11-23 22:27:38 +01:00

8 lines
196 B
Ruby

class NotFound < StandardError; end
class ApplicationController < ActionController::Base
protect_from_forgery
rescue_from(ActiveRecord::RecordNotFound) { render 'exceptions/not_found' }
end