Class: LoanRecipient
- Inherits:
-
Role::ProjectRole
- Object
- Role
- Role::ProjectRole
- LoanRecipient
- Defined in:
- app/models/loan_recipient.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Role::ProjectRole
Methods included from Housekeeping
#has_polymorphic_relationship?
Class Method Details
.human_name ⇒ Object
5 6 7 |
# File 'app/models/loan_recipient.rb', line 5 def self.human_name 'Loan recipient' end |
Instance Method Details
#year_active_year ⇒ Object
9 10 11 12 13 14 |
# File 'app/models/loan_recipient.rb', line 9 def year_active_year [ role_object.date_requested&.year, role_object.date_received&.year, # role_object.date_closed&.year, # post humous return ].compact.first end |