Skip to content

Instantly share code, notes, and snippets.

@thisduck
Created September 1, 2014 17:06
Show Gist options
  • Save thisduck/93df9972abc5cf8e4e9f to your computer and use it in GitHub Desktop.
Save thisduck/93df9972abc5cf8e4e9f to your computer and use it in GitHub Desktop.
def audit_required_messages
messages = []
if requires_first_loans_audit? && !lender_program_config.exempt_from_first_loans_audit?
config = lender.try(:lender_config) || DefaultLenderConfig.new
messages << "less than #{config.new_partner_satisfaction_call_quantity} loans disbursed"
end
if vertical.try(:name) == "Home Improvement"
messages << "Home Improvement loan"
end
messages
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment