Guest User

Untitled

a guest
Apr 27th, 2018
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. people = Person.with_status_code_not_as("Pending Federal Benefits Direct Deposit Credit")
  2.  
  3. people.each do |p|
  4. next if p.direct_deposit_status.direct_deposit_status_code.to_s == "Rejected"
  5. if !p.federal_benefits_enrollments.empty?
  6. p.direct_deposit_status.change_status!("Pending Federal Benefits Direct Deposit Credit", p.direct_deposit_status.created_by, nil)
  7. end
  8. end
Add Comment
Please, Sign In to add comment