Sha256: f63ab6cf56d606a4bb8a28125ee8d83e6c72f15b00aa5a8dbe1aea776c659afb
Contents?: true
Size: 294 Bytes
Versions: 8
Compression:
Stored size: 294 Bytes
Contents
class ApplicationController < ActionController::Base rescue_from ActiveRecord::RecordNotFound do render '404', status: :not_found end # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception end
Version data entries
8 entries across 8 versions & 1 rubygems