Flowdock
method

validate_options

Importance_0
v4.0.2 - Show latest stable - 0 notes - Class: HTML::Sanitizer
validate_options(options) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/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
Register or log in to add new notes.