Class: Role::SourceRole

Inherits:
Role
  • Object
show all
Includes:
Housekeeping::Users, Shared::SharedAcrossProjects
Defined in:
app/models/role/source_role.rb

Overview

The role that is related to a source (e.g. Editor, Author)

Direct Known Subclasses

SourceAuthor, SourceEditor, SourceSource

Instance Attribute Summary

Attributes included from Housekeeping::Users

#by

Attributes inherited from Role

#person_id, #position, #project_id, #role_object_id, #role_object_type, #type

Instance Method Summary (collapse)

Methods included from Housekeeping::Users

#set_created_by_id, #set_updated_by_id

Methods inherited from Role

#vet_person

Methods included from Housekeeping::Timestamps

#data_breakdown_for_chartkick_recent

Instance Method Details

- (Object) update_source_cached



12
13
14
# File 'app/models/role/source_role.rb', line 12

def update_source_cached
  self.role_object.save
end