instance method validate_options

Ruby on Rails 4.1.16

Since v4.0.13 Last seen in v4.1.16

Available in: v4.0.13 v4.1.16

Signature

validate_options(options)

No documentation comment.

Parameters

options req
Source
# 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

Defined in actionview/lib/action_view/vendor/html-scanner/html/sanitizer.rb line 32 · View on GitHub · Improve this page · Find usages on GitHub

Defined in HTML::Sanitizer

Type at least 2 characters to search.

↑↓ navigate · open · esc close