From e294009b0789acd37d9467137d112ad7fcd53711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sat, 11 Jun 2011 17:10:16 +0200 Subject: No need for a configuration option here. --- actionpack/lib/action_view/helpers/form_tag_helper.rb | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'actionpack/lib/action_view/helpers/form_tag_helper.rb') diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index dd19fd2de9..72bc4510b5 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -17,13 +17,6 @@ module ActionView include UrlHelper include TextHelper - # You can change what the name will be for the hidden tag that forces utf8 - # encoding for forms generated with Rails form helpers. - # - # ActionView::Helpers::FormTagHelper.utf8_enforcer_param = "_unicode" - mattr_accessor :utf8_enforcer_param - @@utf8_enforcer_param = "utf8" - # Starts a form tag that points the action to an url configured with url_for_options just like # ActionController::Base#url_for. The method for the form defaults to POST. # @@ -605,10 +598,9 @@ module ActionView end # Creates the hidden UTF8 enforcer tag. Override this method in a helper - # to customize the tag. If you just need to change the field name, set the - # +config.action_view.utf8_enforcer_param+ configuration option instead. + # to customize the tag. def utf8_enforcer_tag - tag(:input, :type => "hidden", :name => utf8_enforcer_param, :value => "✓".html_safe) + tag(:input, :type => "hidden", :name => "utf8", :value => "✓".html_safe) end private -- cgit v1.2.3