Module: OpenIdAuthentication::Request

Defined in:
lib/plugins/open_id_authentication/lib/open_id_authentication/request.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object


5
6
7
# File 'lib/plugins/open_id_authentication/lib/open_id_authentication/request.rb', line 5

def self.included(base)
  base.alias_method_chain :request_method, :openid
end

Instance Method Details

#request_method_with_openidObject


9
10
11
12
13
14
15
# File 'lib/plugins/open_id_authentication/lib/open_id_authentication/request.rb', line 9

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