Class: ActionController::AbstractRequest
Instance Method Summary
collapse
#one_or_true, #zero_or_false
Instance Method Details
#query_parameters_with_facebooker ⇒ Object
22
23
24
25
26
27
28
|
# File 'lib/facebooker/rails/extensions/action_controller.rb', line 22
def query_parameters_with_facebooker
if request_parameters.blank?
query_parameters_without_facebooker
else
(query_parameters_without_facebooker||{}).reject {|key,value| key.to_s =~ /^fb_sig/}
end
end
|
#request_method_with_facebooker ⇒ Object
5
6
7
8
9
10
11
12
|
# File 'lib/facebooker/rails/facebook_request_fix.rb', line 5
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
|
#xml_http_request_with_facebooker? ⇒ Boolean
18
19
20
21
22
|
# File 'lib/facebooker/rails/facebook_request_fix.rb', line 18
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
|