Use .before_action instead of .before_filter.

git-svn-id: http://svn.redmine.org/redmine/trunk@15655 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2016-07-14 07:27:31 +00:00
parent d2f7e31951
commit ee82a55602
50 changed files with 122 additions and 122 deletions

View File

@@ -18,7 +18,7 @@
class WorkflowsController < ApplicationController
layout 'admin'
before_filter :require_admin
before_action :require_admin
def index
@roles = Role.sorted.select(&:consider_workflow?)