aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lee <davidomundo@gmail.com>2011-05-20 18:40:59 -0700
committerDavid Lee <davidomundo@gmail.com>2011-06-11 01:58:26 -0700
commit9b305983e3518093f3b393a254f296ca2be29968 (patch)
treec034bb3e4c97e2f17421c715ead83aa70c5dabe8
parent91e3046b717117b4d2961b813fee674fdda2cb47 (diff)
downloadrails-9b305983e3518093f3b393a254f296ca2be29968.tar.gz
rails-9b305983e3518093f3b393a254f296ca2be29968.tar.bz2
rails-9b305983e3518093f3b393a254f296ca2be29968.zip
Remove utf8_enforcer_param config option
-rw-r--r--actionpack/lib/action_view/railtie.rb7
-rw-r--r--railties/guides/source/configuring.textile2
-rw-r--r--railties/test/application/configuration_test.rb15
3 files changed, 0 insertions, 24 deletions
diff --git a/actionpack/lib/action_view/railtie.rb b/actionpack/lib/action_view/railtie.rb
index b12aa4527b..80391d72cc 100644
--- a/actionpack/lib/action_view/railtie.rb
+++ b/actionpack/lib/action_view/railtie.rb
@@ -8,13 +8,6 @@ module ActionView
config.action_view.stylesheet_expansions = {}
config.action_view.javascript_expansions = { :defaults => %w(jquery jquery_ujs) }
- initializer "action_view.utf8_enforcer_param" do |app|
- ActiveSupport.on_load(:action_view) do
- param = app.config.action_view.delete(:utf8_enforcer_param)
- ActionView::Helpers::FormTagHelper.utf8_enforcer_param = param
- end
- end
-
initializer "action_view.cache_asset_ids" do |app|
unless app.config.cache_classes
ActiveSupport.on_load(:action_view) do
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile
index 923de8b7c0..80de36070d 100644
--- a/railties/guides/source/configuring.textile
+++ b/railties/guides/source/configuring.textile
@@ -330,8 +330,6 @@ And can reference in the view with the following code:
<%= stylesheet_link_tag :special %>
</ruby>
-* +config.action_view.utf8_enforcer_param+ tells Rails what the +name+ attribute should be for the hidden tag that's used for enforcing UTF8 encoding in form submissions. The default is +'utf8'+.
-
* +config.action_view.cache_asset_ids+ With the cache enabled, the asset tag helper methods will make fewer expensive file system calls (the default implementation checks the file system timestamp). However this prevents you from modifying any asset files while the server is running.
h4. Configuring Action Mailer
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb
index 5d47922ef5..477dada820 100644
--- a/railties/test/application/configuration_test.rb
+++ b/railties/test/application/configuration_test.rb
@@ -250,21 +250,6 @@ module ApplicationTests
assert last_response.body =~ /_xsrf_token_here/
end
- test "utf8 enforcer param can be changed" do
- make_basic_app do
- app.config.action_view.utf8_enforcer_param = "_unicode"
- end
-
- class ::OmgController < ActionController::Base
- def index
- render :inline => "<%= form_tag('/') %>"
- end
- end
-
- get "/"
- assert last_response.body =~ /_unicode/
- end
-
test "config.action_controller.perform_caching = true" do
make_basic_app do |app|
app.config.action_controller.perform_caching = true