aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-28 17:15:18 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-28 17:15:18 -0300
commitd49e1c75520857a9ea8b2c7448300ad4a8e2095f (patch)
tree182ce5a4c13b1ac3f729df7c657a0babbb015658
parent37c7774504f29fcb99362a1983c1364c856e116e (diff)
parent7575f4b9d6919c35e09aa3561bb0a1b0b0ab5d35 (diff)
downloadrails-d49e1c75520857a9ea8b2c7448300ad4a8e2095f.tar.gz
rails-d49e1c75520857a9ea8b2c7448300ad4a8e2095f.tar.bz2
rails-d49e1c75520857a9ea8b2c7448300ad4a8e2095f.zip
Merge pull request #15393 from tonytonyjan/patch-2
Fix documentation
-rw-r--r--actionview/lib/action_view/helpers/sanitize_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/sanitize_helper.rb b/actionview/lib/action_view/helpers/sanitize_helper.rb
index e5cb843670..049af275b6 100644
--- a/actionview/lib/action_view/helpers/sanitize_helper.rb
+++ b/actionview/lib/action_view/helpers/sanitize_helper.rb
@@ -48,7 +48,7 @@ module ActionView
# Change allowed default attributes
#
# class Application < Rails::Application
- # config.action_view.sanitized_allowed_attributes = 'id', 'class', 'style'
+ # config.action_view.sanitized_allowed_attributes = ['id', 'class', 'style']
# end
#
# Please note that sanitizing user-provided text does not guarantee that the
@@ -204,7 +204,7 @@ module ActionView
# Adds to the Set of allowed HTML attributes for the +sanitize+ helper.
#
# class Application < Rails::Application
- # config.action_view.sanitized_allowed_attributes = 'onclick', 'longdesc'
+ # config.action_view.sanitized_allowed_attributes = ['onclick', 'longdesc']
# end
#
def sanitized_allowed_attributes=(attributes)