Sha256: 5198ccd37480ecb50b813e6e0ac838923f3fedec115000eeb27a3c8904d41c2c
Contents?: true
Size: 337 Bytes
Versions: 26
Compression:
Stored size: 337 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(Adeia::LoginRequired) { |e| redirect_to login_path } rescue_from(Adeia::AccessDenied) { |e| redirect_to root_path } end
Version data entries
26 entries across 26 versions & 1 rubygems