Sha256: e7438588e9fb356c946a342157ab0cab07a96d7ee23ed29265f5d2ae98f0e417
Contents?: true
Size: 294 Bytes
Versions: 25
Compression:
Stored size: 294 Bytes
Contents
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 rescue_from CanCan::AccessDenied do redirect_to root_url, alert: "FAILURE" end end
Version data entries
25 entries across 25 versions & 1 rubygems