module SocialAuth::ActsAsSocialUser

Public Instance Methods

friends_that_use_the_app() click to toggle source
# File lib/social_auth/acts_as_social_user.rb, line 7
def friends_that_use_the_app
  self.class.joins(:services).where('social_auth_services.remote_id IN (?)', remote_ids)
end
remote_ids() click to toggle source
# File lib/social_auth/acts_as_social_user.rb, line 11
def remote_ids
  remote_ids = services.map(&:friend_ids).flatten.map(&:to_s)
end