Rename all before_filter to before_action, it's the same function with a new name

This commit is contained in:
Luis Ramos
2020-06-22 13:11:57 +01:00
parent 46a1c1cf26
commit 8a61257547
56 changed files with 154 additions and 154 deletions

View File

@@ -11,9 +11,9 @@ module Api
attr_accessor :current_api_user
before_filter :set_content_type
before_filter :authenticate_user
after_filter :set_jsonp_format
before_action :set_content_type
before_action :authenticate_user
after_action :set_jsonp_format
rescue_from Exception, with: :error_during_processing
rescue_from CanCan::AccessDenied, with: :unauthorized