Class: LoanSupervisor

Inherits:
Role::ProjectRole show all
Defined in:
app/models/loan_supervisor.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Role::ProjectRole

#set_project_if_possible

Methods included from Housekeeping

#has_polymorphic_relationship?

Class Method Details

.human_nameObject



5
6
7
# File 'app/models/loan_supervisor.rb', line 5

def self.human_name
  'Loan supervisor'
end

Instance Method Details

#year_active_yearObject



9
10
11
12
13
14
# File 'app/models/loan_supervisor.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