lib/ghtorrent/ghtorrent.rb
def ensure_user_followers(followed)
      curuser = ensure_user(followed, false, false)
      followers = db.from(:followers, :users).\
          where(Sequel.qualify('followers', 'follower_id') => Sequel.qualify('users', 'id')).\
          where(Sequel.qualify('followers', 'user_id') => curuser[:id]).select(:login).all

      retrieve_user_followers(followed).reduce([]) do |acc, x|
        if followers.find {|y| y[:login] == x['login']}.nil?
          acc << x
        else
          acc
        end
      end.map { |x| save{ensure_user_follower(followed, x['login']) }}.select{|x| !x.nil?}
    end
def ensure_user_followers(followed)
      curuser = ensure_user(followed, false, false)
      followers = db.from(:followers, :users).\
          where(Sequel.qualify('followers', 'follower_id') => Sequel.qualify('users', 'id')).\
          where(Sequel.qualify('followers', 'user_id') => curuser[:id]).select(:login).all

      retrieve_user_followers(followed).reduce([]) do |acc, x|
        if followers.find {|y| y[:login] == x['login']}.nil?
          acc << x
        else
          acc
        end
      end.map { |x| save{ensure_user_follower(followed, x['login']) }}.select{|x| !x.nil?}
    end
Get all followers for a user. Since we do not know when the actual
 follow event took place, we set the created_at field to the timestamp
 of the method call.

 ==Parameters:
 [user]  The user login to find followers by