Skip to content

Instantly share code, notes, and snippets.

@jamescook
Forked from supriya/gist:272259
Created January 8, 2010 19:00
Show Gist options
  • Save jamescook/272284 to your computer and use it in GitHub Desktop.
Save jamescook/272284 to your computer and use it in GitHub Desktop.
people = Person.with_status_code_not_as("Pending Federal Benefits Direct Deposit Credit")
people.each do |p|
next if p.direct_deposit_status.direct_deposit_status_code.to_s == "Rejected"
if !p.federal_benefits_enrollments.empty?
p.direct_deposit_status.change_status!("Pending Federal Benefits Direct Deposit Credit", p.direct_deposit_status.created_by, nil)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment