Class: Role::AttributionRole
- Inherits:
-
Role
- Object
- Role
- Role::AttributionRole
- Includes:
- Housekeeping
- Defined in:
- app/models/role/attribution_role.rb
Overview
A AttributionRole is data within a project.
Direct Known Subclasses
AttributionCopyrightHolder, AttributionCreator, AttributionEditor, AttributionOwner
Instance Method Summary collapse
-
#set_project_if_possible ⇒ Object
protected
TODO: this doesn't do what we think it does.
Methods included from Housekeeping
#has_polymorphic_relationship?
Instance Method Details
#set_project_if_possible ⇒ Object (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 |