Sha256: cf5bfb395adaf15996fffd57139b96c7b444adf2ce86d2c007f5cc340c2f9c79

Contents?: true

Size: 355 Bytes

Versions: 2

Compression:

Stored size: 355 Bytes

Contents

module Socialite
  class User < ActiveRecord::Base
    include Models::User

    has_one :facebook_identity,
      :class_name => 'Identity', :foreign_key => 'user_id', :conditions => { :provider => 'facebook' }
    has_one :twitter_identity,
      :class_name => 'Identity', :foreign_key => 'user_id', :conditions => { :provider => 'twitter' }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
socialite-0.0.1.beta4 app/models/socialite/user.rb
socialite-0.0.1.beta2 app/models/socialite/user.rb