Skip to content

Instantly share code, notes, and snippets.

@supriya
Created January 8, 2010 18:31
Show Gist options
  • Save supriya/272259 to your computer and use it in GitHub Desktop.
Save supriya/272259 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|
if !p.federal_benefits_enrollments.empty? && p.direct_deposit_status.direct_deposit_status_code.to_s != "Rejected"
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