Skip to content

Instantly share code, notes, and snippets.

View leeadkins's full-sized avatar
🎯
Focusing

Lee Adkins leeadkins

🎯
Focusing
View GitHub Profile
@leeadkins
leeadkins / user.rb
Created October 19, 2010 18:48 — forked from RSpace/user.rb
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