search for: remote_list

Displaying 1 result from an estimated 1 matches for "remote_list".

Did you mean: remote_lists
2006 Jun 07
0
Refreshing remote :through associations with deletes
Hi everyone, I''m refreshing the local Rails database from a remote database every 10 minutes. I''m using a :through association to relate people to mailinglists through subscriptions. # Works fine, every 10 minutes: remote_lists.each { |list| List.find_or_create_by_name(list.name) } remote_subscribers.each do |subscriber| person = Person.find_by_email(subscriber.user) unless person.nil? Subscription.find_or_create_by_person_id_and_mailinglist_id(person.id, local_list.id) end end remote_lists.each do |list| lo...