aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/railtie.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_view/railtie.rb')
-rw-r--r--actionpack/lib/action_view/railtie.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/railtie.rb b/actionpack/lib/action_view/railtie.rb
index 80391d72cc..b12aa4527b 100644
--- a/actionpack/lib/action_view/railtie.rb
+++ b/actionpack/lib/action_view/railtie.rb
@@ -8,6 +8,13 @@ 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