Sha256: 51ac5ae93641817e537251e667e764dd9b4e437b1c72a6c9c75a27ecd157e16c
Contents?: true
Size: 374 Bytes
Versions: 55
Compression:
Stored size: 374 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 before_action :print_authenticity_token private def print_authenticity_token Rails.logger.info "*** Real token is #{send(:real_csrf_token, session)}" end end
Version data entries
55 entries across 55 versions & 1 rubygems