Module: OpenIdAuthentication::Request

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
# File 'lib/vendor/plugins/open_id_authentication/lib/open_id_authentication/request.rb', line 3

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

Instance Method Details

#request_method_with_openidObject



7
8
9
10
11
12
13
# File 'lib/vendor/plugins/open_id_authentication/lib/open_id_authentication/request.rb', line 7

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