Method: Chimpactions::Subscriber::ClassMethods#move_to
- Defined in:
- lib/chimpactions/subscriber.rb
#move_to(list) ⇒ Object
Remove Subscriber from all lists in the account and add to the specified List
42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/chimpactions/subscriber.rb', line 42 def move_to(list) list = validate_list(list) # add to the specified list if add_to(list) == true #remove from all the others Chimpactions.available_lists.each do |l| remove_from(l) if l != list end true else false end end |