Module: Vidibus::Xss::Extensions::View
- Defined in:
- lib/vidibus/xss/extensions/view.rb
Instance Method Summary collapse
-
#set_xss_html_attributes(attributes) ⇒ Object
Sets XSS attributes on given ones.
Instance Method Details
#set_xss_html_attributes(attributes) ⇒ Object
Sets XSS attributes on given ones.
7 8 9 10 11 |
# File 'lib/vidibus/xss/extensions/view.rb', line 7 def set_xss_html_attributes(attributes) attributes['data-xss'] = true attributes.delete(:remote) # avoid concurrent remote calls attributes end |