module ActionView::Helpers::SanitizeHelper::ClassMethods

def sanitized_allowed_attributes=(attributes)


end
config.action_view.sanitized_allowed_attributes = ['onclick', 'longdesc']
class Application < Rails::Application

Replaces the allowed HTML attributes for the +sanitize+ helper.
def sanitized_allowed_attributes=(attributes)
  sanitizer_vendor.safe_list_sanitizer.allowed_attributes = attributes
end