Sha256: 9e5e1d995c1e410b307a7bf6204d712b4aae3f2ebe3ca68e027ee4e7833eaa8d
Contents?: true
Size: 365 Bytes
Versions: 8
Compression:
Stored size: 365 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 private def current_user @current_user ||= User.find_by_auth_token( cookies[:auth_token]) if cookies[:auth_token] end helper_method :current_user end
Version data entries
8 entries across 8 versions & 1 rubygems