1 module OpenIdAuthentication
3 def self.included(base)
4 base.alias_method_chain :request_method, :openid
7 def request_method_with_openid
8 if !parameters[:_method].blank? && parameters[:open_id_complete] == '1'
9 parameters[:_method].to_sym
11 request_method_without_openid
17 # In Rails 2.3, the request object has been renamed
18 # from AbstractRequest to Request
19 if defined? ActionController::Request
20 ActionController::Request.send :include, OpenIdAuthentication::Request
22 ActionController::AbstractRequest.send :include, OpenIdAuthentication::Request