NerdDiffer/job_tracker

View on GitHub
app/controllers/sessions/base_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Sessions
  class BaseController < ApplicationController
    attr_reader :user

    def destroy
      log_out if logged_in?
      flash[:info] = 'You have logged out'
      redirect_to(root_url)
    end
  end
end