Use before_action instead of before_filter

This commit is contained in:
François Turbelin
2020-09-02 21:48:13 +02:00
parent d5800642e7
commit 4f2b7094d0
2 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ module DfcProvider
class BaseController < ::ActionController::Base
rescue_from ActiveRecord::RecordNotFound, with: :not_found
before_filter :check_authorization,
before_action :check_authorization,
:check_user,
:check_enterprise

View File

@@ -4,9 +4,9 @@
module DfcProvider
module Api
class PeopleController < BaseController
skip_before_filter :check_enterprise
skip_before_action :check_enterprise
before_filter :find_user, :check_user_accessibility
before_action :find_user, :check_user_accessibility
def show
render json: @user, serializer: DfcProvider::PersonSerializer