Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
biow0lf committed Jan 22, 2018
1 parent 03610b8 commit 00be5e8
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

class SessionsController < ApplicationController
skip_before_action :authenticate, only: [:new, :create]
skip_before_action :authenticate

before_action :setup_account

Expand All @@ -21,14 +21,6 @@ def create
end
end

def destroy
flash[:success] = t('sessions.destroy.flash.logged_out_successfully')

session[:user_id] = nil

redirect_to root_path
end

private

def setup_account
Expand Down

0 comments on commit 00be5e8

Please sign in to comment.