aboutsummaryrefslogtreecommitdiffstats
path: root/config/environment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/environment.rb')
-rw-r--r--config/environment.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/environment.rb b/config/environment.rb
index 62db9d0ae..5408056ad 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -79,8 +79,8 @@ ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| %(<span clas
# Monkeypatch! Output HTML 4.0 compliant code, using method described in this
# ticket: http://dev.rubyonrails.org/ticket/6009
ActionView::Helpers::TagHelper.module_eval do
- def tag(name, options = nil, open = false)
- "<#{name}#{tag_options(options.stringify_keys) if options}>"
+ def tag(name, options = nil, open = false, escape = true)
+ "<#{name}#{tag_options(options, escape) if options}" + (open ? ">" : ">")
end
end