Class ::Request
In: lib/facebooker/rails/facebook_request_fix_2-3.rb
lib/facebooker/rails/facebook_url_rewriting.rb
Parent: Object

Methods

Included Modules

Facebooker::Rails::BackwardsCompatibleParamChecks

External Aliases

xml_http_request? -> xhr?
  we have to re-alias xhr? since it was pointing to the old method

Public Instance methods

[Source]

# File lib/facebooker/rails/facebook_url_rewriting.rb, line 10
      def relative_url_root
        Facebooker.path_prefix
      end

[Source]

# File lib/facebooker/rails/facebook_request_fix_2-3.rb, line 7
    def request_method_with_facebooker
      if parameters[:_method].blank?
        if %w{GET HEAD}.include?(parameters[:fb_sig_request_method])
          parameters[:_method] = parameters[:fb_sig_request_method]
        end
      end
      request_method_without_facebooker
    end

[Source]

# File lib/facebooker/rails/facebook_request_fix_2-3.rb, line 20
    def xml_http_request_with_facebooker?
      one_or_true(parameters["fb_sig_is_mockajax"])  ||
      one_or_true(parameters["fb_sig_is_ajax"]) ||
      xml_http_request_without_facebooker?
    end

[Validate]