Module: ProjectManager::Associations

Defined in:
app/models/project_manager.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object


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

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

Instance Method Details

#project_managerObject


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

def project_manager
  super || ProjectManager.unallocated
end