From accf1463d86cf7484831a43dbf40ed98be15df5a Mon Sep 17 00:00:00 2001 From: okbp Date: Sat, 3 Mar 2018 03:46:31 +0900 Subject: [PATCH] =?UTF-8?q?get=E4=BB=A5=E5=A4=96=E3=81=A7=E3=81=AFreturn?= =?UTF-8?q?=5Fto=E3=81=AF=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84=E3=81=AE?= =?UTF-8?q?=E3=81=A7=E8=AA=8D=E8=A8=BC=E6=83=85=E5=A0=B1=E3=81=AE=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=87=A6=E7=90=86=E3=81=8B=E3=82=89=E9=99=A4=E5=A4=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tauth/controller_methods.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tauth/controller_methods.rb b/lib/tauth/controller_methods.rb index 426c80e..9c9c170 100644 --- a/lib/tauth/controller_methods.rb +++ b/lib/tauth/controller_methods.rb @@ -44,6 +44,7 @@ def authenticate! def refresh_current_user return if (last_fetch = cookies.signed[:tauth_last_fetch] and last_fetch > Tauth.config.expires_in.ago) + return if request.request_method.upcase != "GET" refresh_current_user! end