Class: SourceAuthor
- Inherits:
-
Role::SourceRole
- Object
- Role
- Role::SourceRole
- SourceAuthor
- Defined in:
- app/models/source_author.rb
Overview
Namespaced at root for convenience sake (so we don't have to reference it as Role::SourceRole::SourceAuthor)
Instance Attribute Summary
Attributes included from Housekeeping::Users
Class Method Summary collapse
Instance Method Summary collapse
-
#year_active_year ⇒ Object
Technically this can be wrong, when published post-humously, however, our definition of "active" is not locked in stone.
Methods included from Housekeeping::Users
#set_created_by_id, #set_updated_by_id
Class Method Details
.human_name ⇒ Object
4 5 6 |
# File 'app/models/source_author.rb', line 4 def self.human_name 'Author' end |
Instance Method Details
#year_active_year ⇒ Object
Technically this can be wrong, when published post-humously, however, our definition of "active" is not locked in stone.
10 11 12 13 14 |
# File 'app/models/source_author.rb', line 10 def year_active_year y = role_object.year y ||= role_object.stated_year y end |