This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User < ActiveRecord::Base | |
devise :database_authenticatable, :openid_authenticatable, :recoverable, :rememberable, :trackable, :validatable | |
# Handle creation of user authenticated via OpenID | |
def self.create_from_identity_url(identity_url) | |
User.new(:identity_url => identity_url) | |
end | |
# Set email as a required field from the Open ID provider |