Module: Para::Ext::Request::IFrameXHR
- Defined in:
- lib/para/ext/request_iframe_xhr.rb
Instance Method Summary collapse
- #iframe_request? ⇒ Boolean
-
#xml_http_request? ⇒ Boolean
(also: #xhr?)
Handle jquery.iframe-transport specific parameter.
Instance Method Details
#iframe_request? ⇒ Boolean
11 12 13 |
# File 'lib/para/ext/request_iframe_xhr.rb', line 11 def iframe_request? params[:'X-Requested-With'] == 'IFrame' end |
#xml_http_request? ⇒ Boolean Also known as: xhr?
Handle jquery.iframe-transport specific parameter
6 7 8 |
# File 'lib/para/ext/request_iframe_xhr.rb', line 6 def xml_http_request? super || iframe_request? end |