Removed ensureUTF8 filter. It's no longer required.
This commit is contained in:
parent
ffc3adf907
commit
412d145c83
1 changed files with 1 additions and 9 deletions
|
@ -60,14 +60,6 @@ class ApplicationController < ActionController::Base
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
# Ensures the HTTP content-type encoding is set to "UTF-8" for "text/html" contents.
|
|
||||||
def ensureUTF8
|
|
||||||
content_type = headers["Content-Type"] || "text/html"
|
|
||||||
if /^text\//.match(content_type)
|
|
||||||
headers["Content-Type"] = "#{content_type}; charset=utf-8"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def authenticate(role = 'any')
|
def authenticate(role = 'any')
|
||||||
# Attempt to retrieve authenticated user from controller instance or session...
|
# Attempt to retrieve authenticated user from controller instance or session...
|
||||||
if !(user = current_user)
|
if !(user = current_user)
|
||||||
|
|
Loading…
Reference in a new issue