diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2014-10-25 23:19:27 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2014-10-25 23:19:27 +0530 |
commit | 95acea5498f1e9ac43cf87b55578e0a8d576680b (patch) | |
tree | 37112c6ff26480216de879676b1318dd559037cc /actionview/lib/action_view | |
parent | 8d7cf75684d5e76ef635f92125a51cb4c1c0fd3b (diff) | |
download | rails-95acea5498f1e9ac43cf87b55578e0a8d576680b.tar.gz rails-95acea5498f1e9ac43cf87b55578e0a8d576680b.tar.bz2 rails-95acea5498f1e9ac43cf87b55578e0a8d576680b.zip |
Clarify comments about sanitized_allowed_tags
- Clarify that arguments are expected in array format.
- Extension of https://github.com/rails/rails/pull/17390.
- https://github.com/rails/rails/pull/17390 was targeted against
4-1-stable branch. This commit updates master.
- [ci skip]
Diffstat (limited to 'actionview/lib/action_view')
-rw-r--r-- | actionview/lib/action_view/helpers/sanitize_helper.rb | 4 |
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 4f2db0a0c4..7cb55cc214 100644 --- a/actionview/lib/action_view/helpers/sanitize_helper.rb +++ b/actionview/lib/action_view/helpers/sanitize_helper.rb @@ -57,7 +57,7 @@ module ActionView # Add table tags to the default allowed tags # # class Application < Rails::Application - # config.action_view.sanitized_allowed_tags = 'table', 'tr', 'td' + # config.action_view.sanitized_allowed_tags = ['table', 'tr', 'td'] # end # # Remove tags to the default allowed tags @@ -176,7 +176,7 @@ module ActionView # Replaces the allowed tags for the +sanitize+ helper. # # class Application < Rails::Application - # config.action_view.sanitized_allowed_tags = 'table', 'tr', 'td' + # config.action_view.sanitized_allowed_tags = ['table', 'tr', 'td'] # end # |