Sha256: 338c9d704a495b30f879e35b4ce76c25abbde49163b71404698d739c8d81f27a

Contents?: true

Size: 401 Bytes

Versions: 12

Compression:

Stored size: 401 Bytes

Contents

class LegacyUser < ActiveRecord::Base
  devise :openid_authenticatable, :rememberable

  def self.create_from_identity_url(identity_url)
    create do |user|
      user.identity_url = identity_url
    end
  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/legacy_user.rb
devise_openid_authenticatable-1.2.1 spec/scenario/app/models/legacy_user.rb
devise_openid_authenticatable-1.2.0 spec/scenario/app/models/legacy_user.rb
devise_openid_authenticatable-1.1.6 spec/scenario/app/models/legacy_user.rb
devise_openid_authenticatable-1.1.5 spec/scenario/app/models/legacy_user.rb
devise_openid_authenticatable-1.1.4 spec/scenario/app/models/legacy_user.rb
devise_openid_authenticatable-1.1.3 spec/scenario/app/models/legacy_user.rb
devise_openid_authenticatable-1.1.2 spec/scenario/app/models/legacy_user.rb
devise_openid_authenticatable-1.1.1 spec/scenario/app/models/legacy_user.rb
devise_openid_authenticatable-1.1.0 spec/scenario/app/models/legacy_user.rb
devise_openid_authenticatable-1.0.0 spec/scenario/app/models/legacy_user.rb
devise_openid_authenticatable-1.0.0.beta2 spec/scenario/app/models/legacy_user.rb