method

validate_options

rails latest stable - Class: HTML::Sanitizer

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.1.8) is shown here.

validate_options(options)
protected

No documentation available.

# File actionview/lib/action_view/vendor/html-scanner/html/sanitizer.rb, line 32
    def validate_options(options)
      if options[:tags] && !options[:tags].is_a?(Enumerable)
        raise ArgumentError, "You should pass :tags as an Enumerable"
      end

      if options[:attributes] && !options[:attributes].is_a?(Enumerable)
        raise ArgumentError, "You should pass :attributes as an Enumerable"
      end
    end