Sha256: f1952511b09693ce2225d9f5469ae1e8a1bc0665c26b87dff41d8050a9a8a0a1
Contents?: true
Size: 332 Bytes
Versions: 3
Compression:
Stored size: 332 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