diff options
Diffstat (limited to 'actionview')
-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 d4d3b0275d..168f327a87 100644 --- a/actionview/lib/action_view/helpers/sanitize_helper.rb +++ b/actionview/lib/action_view/helpers/sanitize_helper.rb @@ -190,7 +190,7 @@ module ActionView # config.action_view.sanitized_allowed_tags = 'table', 'tr', 'td' # end # - def sanitized_allowed_tags=(*tags) + def sanitized_allowed_tags=(tags) Rails::Html::WhiteListSanitizer.allowed_tags = tags end @@ -200,7 +200,7 @@ module ActionView # config.action_view.sanitized_allowed_attributes = ['onclick', 'longdesc'] # end # - def sanitized_allowed_attributes=(*attributes) + def sanitized_allowed_attributes=(attributes) Rails::Html::WhiteListSanitizer.allowed_attributes = attributes end end |