Permalink
Browse files

No need for a configuration option here.

  • Loading branch information...
1 parent 28f2b98 commit e294009b0789acd37d9467137d112ad7fcd53711 @josevalim josevalim committed Jun 11, 2011
Showing with 2 additions and 10 deletions.
  1. +2 −10 actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -17,13 +17,6 @@ module FormTagHelper
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 <tt>url_for_options</tt> just like
# ActionController::Base#url_for. The method for the form defaults to POST.
#
@@ -605,10 +598,9 @@ def range_field_tag(name, value = nil, options = {})
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 => "&#x2713;".html_safe)
+ tag(:input, :type => "hidden", :name => "utf8", :value => "&#x2713;".html_safe)
end
private

0 comments on commit e294009

Please sign in to comment.