Skip to content

Commit 88b7d1d

Browse files
committed
Fix sign out
1 parent 0be62b2 commit 88b7d1d

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

app/controllers/users_controller.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
include TimeSeriesInitializer
24

35
class UsersController < ApplicationController

app/views/application/_navbar.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@
3434
%input#modal-1.modal-state{:type => "checkbox"}/
3535
= render 'modal'
3636
%li.devider
37-
%li= link_to t("sign_out"), destroy_user_session_path
37+
%li= link_to t("sign_out"), destroy_user_session_path, method: :delete

config/initializers/devise.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@
269269
# config.navigational_formats = ["*/*", :html]
270270

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

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

0 commit comments

Comments
 (0)