Module: ProjectManager::Associations
- Defined in:
- app/models/project_manager.rb
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_manager ⇒ Object
19 20 21 |
# File 'app/models/project_manager.rb', line 19 def project_manager super || ProjectManager.unallocated end |