summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-26 20:11:10 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-26 20:11:10 +0000
commit71649ba2f137f3a48af031193af2b7f315519299 (patch)
tree9d4b5cbfd288d2c72f4bee28ead736846d64bcf3 /app/controllers
parent79091382ccb3a677a2fcdf7e487e08bb30d1d954 (diff)
downloadredmine-71649ba2f137f3a48af031193af2b7f315519299.tar.gz
redmine-71649ba2f137f3a48af031193af2b7f315519299.zip
Removed #utf8nize! that is no longer used with Rails 3.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9536 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/application_controller.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 17a0b9e1c..f560bae86 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -46,30 +46,6 @@ class ApplicationController < ActionController::Base
end
end
- # FIXME: Remove this when all of Rack and Rails have learned how to
- # properly use encodings
- before_filter :params_filter
-
- def params_filter
- if RUBY_VERSION >= '1.9' && defined?(Rails) && Rails::VERSION::MAJOR < 3
- self.utf8nize!(params)
- end
- end
-
- def utf8nize!(obj)
- if obj.frozen?
- obj
- elsif obj.is_a? String
- obj.respond_to?(:force_encoding) ? obj.force_encoding("UTF-8") : obj
- elsif obj.is_a? Hash
- obj.each {|k, v| obj[k] = self.utf8nize!(v)}
- elsif obj.is_a? Array
- obj.each {|v| self.utf8nize!(v)}
- else
- obj
- end
- end
-
before_filter :user_setup, :check_if_login_required, :set_localization
rescue_from ActionController::InvalidAuthenticityToken, :with => :invalid_authenticity_token