From 6b7790692e30d25501dd380fbf4803315aed9cc3 Mon Sep 17 00:00:00 2001 From: subintp Date: Wed, 21 Aug 2019 21:52:20 +0530 Subject: [PATCH] Use around_action instead of around_filter --- app/controllers/api/v1/facebook_indicators_controller.rb | 2 +- app/controllers/api/v1/reports_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/v1/facebook_indicators_controller.rb b/app/controllers/api/v1/facebook_indicators_controller.rb index 2fffd6d36..bd31ae5db 100644 --- a/app/controllers/api/v1/facebook_indicators_controller.rb +++ b/app/controllers/api/v1/facebook_indicators_controller.rb @@ -1,7 +1,7 @@ class Api::V1::FacebookIndicatorsController < Api::BaseController before_action :set_access_token - around_filter :handle_with_exception + around_action :handle_with_exception def mark_seen Facebook::Messenger::Bot.deliver(payload('mark_seen'), access_token: @access_token) diff --git a/app/controllers/api/v1/reports_controller.rb b/app/controllers/api/v1/reports_controller.rb index df0cc77a5..dfaa0f24b 100644 --- a/app/controllers/api/v1/reports_controller.rb +++ b/app/controllers/api/v1/reports_controller.rb @@ -2,7 +2,7 @@ class Api::V1::ReportsController < Api::BaseController include CustomExceptions::Report include Constants::Report - around_filter :report_exception + around_action :report_exception def account builder = ReportBuilder.new(current_account, account_report_params)