Removed ensureUTF8 filter. It's no longer required.

This commit is contained in:
Benjamin Meichsner 2009-03-24 17:32:56 +01:00
parent ffc3adf907
commit 412d145c83

View file

@ -58,15 +58,7 @@ class ApplicationController < ActionController::Base
return false
end
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
private
def authenticate(role = 'any')
# Attempt to retrieve authenticated user from controller instance or session...