Skip to content

Commit

Permalink
Fix sign out
Browse files Browse the repository at this point in the history
  • Loading branch information
jurre committed Jan 22, 2020
1 parent 0be62b2 commit 88b7d1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

include TimeSeriesInitializer

class UsersController < ApplicationController
Expand Down
2 changes: 1 addition & 1 deletion app/views/application/_navbar.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
%input#modal-1.modal-state{:type => "checkbox"}/
= render 'modal'
%li.devider
%li= link_to t("sign_out"), destroy_user_session_path
%li= link_to t("sign_out"), destroy_user_session_path, method: :delete
2 changes: 1 addition & 1 deletion config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
# config.navigational_formats = ["*/*", :html]

# The default HTTP method used to sign out a resource. Default is :delete.
# config.sign_out_via = :get
config.sign_out_via = :delete

# ==> OmniAuth
# Add a new OmniAuth provider. Check the wiki for more information on setting
Expand Down

0 comments on commit 88b7d1d

Please sign in to comment.