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

@ -60,14 +60,6 @@ class ApplicationController < ActionController::Base
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')
# Attempt to retrieve authenticated user from controller instance or session...
if !(user = current_user)