Sha256: d02c8751bcb77bca99f1763519db9de8e3a1951a0f9aa24114c4dc0429f56325

Contents?: true

Size: 400 Bytes

Versions: 12

Compression:

Stored size: 400 Bytes

Contents

class DatabaseUser < ActiveRecord::Base
  devise :database_authenticatable, :openid_authenticatable, :validatable
  
  def self.build_from_identity_url(identity_url)
    new(:identity_url => identity_url)
  end

  def self.openid_required_fields
    ["http://axschema.org/contact/email"]
  end

  def openid_fields=(fields)
    self.email = fields["http://axschema.org/contact/email"].first
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
devise_openid_authenticatable-1.3.0 spec/scenario/app/models/database_user.rb
devise_openid_authenticatable-1.2.1 spec/scenario/app/models/database_user.rb
devise_openid_authenticatable-1.2.0 spec/scenario/app/models/database_user.rb
devise_openid_authenticatable-1.1.6 spec/scenario/app/models/database_user.rb
devise_openid_authenticatable-1.1.5 spec/scenario/app/models/database_user.rb
devise_openid_authenticatable-1.1.4 spec/scenario/app/models/database_user.rb
devise_openid_authenticatable-1.1.3 spec/scenario/app/models/database_user.rb
devise_openid_authenticatable-1.1.2 spec/scenario/app/models/database_user.rb
devise_openid_authenticatable-1.1.1 spec/scenario/app/models/database_user.rb
devise_openid_authenticatable-1.1.0 spec/scenario/app/models/database_user.rb
devise_openid_authenticatable-1.0.0 spec/scenario/app/models/database_user.rb
devise_openid_authenticatable-1.0.0.beta2 spec/scenario/app/models/database_user.rb