app/models/unfriends_builder.rb
# Fetch users that are created before the specified date without limit
# Separated for test
Fetch users that are created before the specified date without limit
Separated for test
Fetch users that are created before the specified date without limit Separated for test
def users(uid, created_at, limit: DEFAULT_LIMIT)
      TwitterUser.creation_completed.
          where('created_at <= ?', created_at).
          where(uid: uid).select(:id).
          order(created_at: :desc).
          limit(limit).
          reverse
    end
def users ( uid , created_at , limit : DEFAULT_LIMIT ) TwitterUser . creation_completed . where ( 'created_at <= ?' , created_at ) . where ( uid : uid ) . select ( :id ) . order ( created_at : :desc ) . limit ( limit ) . reverse end
Fetch users that are created before the specified date without limit
Separated for test
Fetch users that are created before the specified date without limit Separated for test
uid
<not_specific>
created_at
<not_specific>
limit
<not_specific>