Class: Role::ProjectRole

Inherits:
Role
  • Object
show all
Includes:
Housekeeping
Defined in:
app/models/role/project_role.rb

Overview

TODO:

Refactor after Housekeeping / FactoryBot issues resolved (nested set!!)

A ProjectRole is data within a project.

Instance Method Summary collapse

Methods included from Housekeeping

#has_polymorphic_relationship?

Instance Method Details

#set_project_if_possibleObject (protected)

TODO: this doesn't do what we think it does



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

def set_project_if_possible
  self.project = self.role_object.project if self.role_object && self.project.nil?
end