Sha256: fe0cc3fa675437ebc8dab9a99bb8f61e307f9f683c9d834dd9dad5109e27d264
Contents?: true
Size: 838 Bytes
Versions: 5
Compression:
Stored size: 838 Bytes
Contents
module ::ActionController class AbstractRequest 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 if new.methods.include?("request_method") alias_method_chain :request_method, :facebooker end def xml_http_request_with_facebooker? parameters["fb_sig_is_mockajax"] == "1" || parameters["fb_sig_is_ajax"] == "1" || xml_http_request_without_facebooker? end alias_method_chain :xml_http_request?, :facebooker # we have to re-alias xhr? since it was pointing to the old method unless defined? :xhr? alias xhr? :xml_http_request? end end end
Version data entries
5 entries across 5 versions & 2 rubygems