From 99db4337fa67ae3d0167c70c61fbcc5c933c92fa Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 4 Sep 2017 14:22:12 +0800 Subject: [PATCH] Use `before_action` for Rails 5 compatibility. --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index 3ac198f..bb69d21 100644 --- a/plugin.rb +++ b/plugin.rb @@ -196,7 +196,7 @@ SQL end class ::DiscourseAssign::AssignController < Admin::AdminController - before_filter :ensure_logged_in + before_action :ensure_logged_in def suggestions users = [current_user]