Class: Role::AttributionRole

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

Overview

A AttributionRole 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



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

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