From 17f704a074a548fbfdba5d186ab87ec398ebc289 Mon Sep 17 00:00:00 2001 From: Matt Rogers Date: Sat, 22 Sep 2018 13:04:46 -0500 Subject: [PATCH] Convert `after_filter` to `after_action` Co-Authored-By: Dan Rice --- app/controllers/application_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 8d98d517..ef6b3754 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -119,10 +119,10 @@ class ApplicationController < ActionController::Base # versions. Unfortunately, I ran into a lot of trouble simply registering a # new mime type 'text/html' with format :m because :html already is linked to # that mime type and the new registration was forcing all html requests to be - # rendered in the mobile view. The before_action and after_filter hackery + # rendered in the mobile view. The before_action and after_action hackery # below accomplishs that implementation goal by using a 'fake' mime type # during the processing and then setting it to 'text/html' in an - # 'after_filter' -LKM 2007-04-01 + # 'after_action' -LKM 2007-04-01 def mobile? return params[:format] == 'm' end