Skip to content

Instantly share code, notes, and snippets.

@kbparagua
Last active January 11, 2017 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbparagua/eaca3fa072f144d4375e284107cf39a5 to your computer and use it in GitHub Desktop.
Save kbparagua/eaca3fa072f144d4375e284107cf39a5 to your computer and use it in GitHub Desktop.
prefixes = [
:generic_uncommon, :missing_information, :closed_account, :incorrect_information, :insufficient_funds, :not_authorized
]
['', '_follow_up', '_suspended'].each do |suffix|
prefixes.each do |prefix|
method = "#{prefix}#{suffix}"
FailedBillingMailer.send(method, Company.full_service.active.last).deliver
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment