mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +01:00
Convert after_filter to after_action
Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
This commit is contained in:
parent
5805c511bb
commit
17f704a074
1 changed files with 2 additions and 2 deletions
|
|
@ -119,10 +119,10 @@ class ApplicationController < ActionController::Base
|
||||||
# versions. Unfortunately, I ran into a lot of trouble simply registering a
|
# 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
|
# 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
|
# 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
|
# below accomplishs that implementation goal by using a 'fake' mime type
|
||||||
# during the processing and then setting it to 'text/html' in an
|
# 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?
|
def mobile?
|
||||||
return params[:format] == 'm'
|
return params[:format] == 'm'
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue