From 53957d921b01e993222def6c051901bb4cbe4be9 Mon Sep 17 00:00:00 2001 From: Pat Allan Date: Fri, 13 Oct 2017 10:38:43 +1100 Subject: [PATCH] Fix syntax for MRI 2.5.0-preview1. --- app/controllers/devise/sessions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/devise/sessions_controller.rb b/app/controllers/devise/sessions_controller.rb index d8d18d789e..5c087bdc03 100644 --- a/app/controllers/devise/sessions_controller.rb +++ b/app/controllers/devise/sessions_controller.rb @@ -2,7 +2,7 @@ class Devise::SessionsController < DeviseController prepend_before_filter :require_no_authentication, only: [:new, :create] prepend_before_filter :allow_params_authentication!, only: :create prepend_before_filter :verify_signed_out_user, only: :destroy - prepend_before_filter only: [:create, :destroy] { request.env["devise.skip_timeout"] = true } + prepend_before_filter(only: [:create, :destroy]) { request.env["devise.skip_timeout"] = true } # GET /resource/sign_in def new