public
Fork of rails/open_id_authentication
Description: OpenID authentication plugin
Homepage: http://rubyonrails.org
Clone URL: git://github.com/technoweenie/open_id_authentication.git
100644 18 lines (15 sloc) 0.443 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module OpenIdAuthentication
  module Request
    def self.included(base)
      base.alias_method_chain :request_method, :openid
    end
 
    def request_method_with_openid
      if !parameters[:_method].blank? && parameters[:open_id_complete] == '1'
        parameters[:_method].to_sym
      else
        request_method_without_openid
      end
    end
  end
end
 
ActionController::AbstractRequest.send :include, OpenIdAuthentication::Request