Created
September 1, 2014 17:06
-
-
Save thisduck/93df9972abc5cf8e4e9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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