Module: LoanRecipientsHelper

Defined in:
app/helpers/loan_recipients_helper.rb

Instance Method Summary collapse

Instance Method Details



8
9
10
# File 'app/helpers/loan_recipients_helper.rb', line 8

def loan_recipient_link(loan)
  link_to(loan_recipient_tag(loan).html_safe, loan)
end

#loan_recipient_tag(loan_recipient) ⇒ Object



3
4
5
6
# File 'app/helpers/loan_recipients_helper.rb', line 3

def loan_recipient_tag(loan_recipient)
  return nil if loan_recipient.nil?
  person_tag(loan_recipient.person)
end