Use around_action instead of around_filter
This commit is contained in:
parent
06c7336326
commit
6b7790692e
@ -1,7 +1,7 @@
|
|||||||
class Api::V1::FacebookIndicatorsController < Api::BaseController
|
class Api::V1::FacebookIndicatorsController < Api::BaseController
|
||||||
|
|
||||||
before_action :set_access_token
|
before_action :set_access_token
|
||||||
around_filter :handle_with_exception
|
around_action :handle_with_exception
|
||||||
|
|
||||||
def mark_seen
|
def mark_seen
|
||||||
Facebook::Messenger::Bot.deliver(payload('mark_seen'), access_token: @access_token)
|
Facebook::Messenger::Bot.deliver(payload('mark_seen'), access_token: @access_token)
|
||||||
|
|||||||
@ -2,7 +2,7 @@ class Api::V1::ReportsController < Api::BaseController
|
|||||||
include CustomExceptions::Report
|
include CustomExceptions::Report
|
||||||
include Constants::Report
|
include Constants::Report
|
||||||
|
|
||||||
around_filter :report_exception
|
around_action :report_exception
|
||||||
|
|
||||||
def account
|
def account
|
||||||
builder = ReportBuilder.new(current_account, account_report_params)
|
builder = ReportBuilder.new(current_account, account_report_params)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user