Class: ActionController::AbstractRequest
- Inherits:
-
Object
- Object
- ActionController::AbstractRequest
- Defined in:
- lib/facebooker/rails/facebook_request_fix.rb,
lib/facebooker/rails/facebook_url_rewriting.rb
Instance Method Summary collapse
- #relative_url_root ⇒ Object
- #request_method_with_facebooker ⇒ Object
- #xml_http_request_with_facebooker? ⇒ Boolean
Instance Method Details
#relative_url_root ⇒ Object
3 4 5 |
# File 'lib/facebooker/rails/facebook_url_rewriting.rb', line 3 def relative_url_root Facebooker.path_prefix end |
#request_method_with_facebooker ⇒ Object
3 4 5 6 7 8 |
# File 'lib/facebooker/rails/facebook_request_fix.rb', line 3 def request_method_with_facebooker if parameters[:fb_sig_request_method]=="GET" and parameters[:_method].blank? parameters[:_method]="GET" end request_method_without_facebooker end |
#xml_http_request_with_facebooker? ⇒ Boolean
14 15 16 17 18 |
# File 'lib/facebooker/rails/facebook_request_fix.rb', line 14 def xml_http_request_with_facebooker? parameters["fb_sig_is_mockajax"] == "1" || parameters["fb_sig_is_ajax"] == "1" || xml_http_request_without_facebooker? end |