Module AuthlogicOpenid::Session::Config

  1. lib/authlogic_openid/session.rb

Public instance methods

find_by_openid_identifier_method (value = nil)

What method should we call to find a record by the openid_identifier? This is useful if you want to store multiple openid_identifiers for a single record. You could do something like:

class User < ActiveRecord::Base
  def self.find_by_openid_identifier(identifier)
    user.first(:conditions => {:openid_identifiers => {:identifier => identifier}})

Obviously the above depends on what you are calling your assocition, etc. But you get the point.

  • Default: :find_by_openid_identifier
  • Accepts: Symbol
[show source]
# File lib/authlogic_openid/session.rb, line 27
      def find_by_openid_identifier_method(value = nil)
        rw_config(:find_by_openid_identifier_method, value, :find_by_openid_identifier)
find_by_openid_identifier_method= (value = nil)