instance method
validate_options
Ruby on Rails 4.0.13
Since v4.0.13 Last seen in v4.1.16Available in: v4.0.13 v4.1.16
Signature
validate_options(options)
No documentation comment.
Parameters
-
optionsreq
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
Defined in actionpack/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