Sha256: 6e8938892a061d725434b3ae3bf96ab90fb662a9de647e7a3f3ff03037b5d592
Contents?: true
Size: 345 Bytes
Versions: 3
Compression:
Stored size: 345 Bytes
Contents
class ApplicationController < ActionController::Base include ActiveRecord::Userstamp::ControllerAdditions # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception protected def current_user User.find(session[:user_id]) end end
Version data entries
3 entries across 3 versions & 1 rubygems