blob: a994170aaee3981de215a1cf6eb93674cf9ee8fd (
plain)
1
2
3
4
5
6
7
8
9
|
class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
def not_found
raise ActionController::RoutingError.new('Not Found')
end
end
|