Module: ProjectManager::Associations

Defined in:
app/models/project_manager.rb

Overview

rubocop:todo Style/Documentation

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object


15
16
17
# File 'app/models/project_manager.rb', line 15

def self.included(base)
  base.belongs_to :project_manager, optional: false
end

Instance Method Details

#project_managerObject


19
20
21
# File 'app/models/project_manager.rb', line 19

def project_manager
  super || ProjectManager.unallocated
end