1 2 3 4
class Current < ActiveSupport::CurrentAttributes attribute :session delegate :user, to: :session, allow_nil: true end