Class: TaxonNameAuthor
- Inherits:
-
Role::ProjectRole
- Object
- Role
- Role::ProjectRole
- TaxonNameAuthor
- Defined in:
- app/models/taxon_name_author.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#cached_triggers ⇒ Object
private
TaxonName authors should only trigger author related updates, not name structure!.
- #year_active_year ⇒ Object
Methods inherited from Role::ProjectRole
Methods included from Housekeeping
#has_polymorphic_relationship?
Class Method Details
.human_name ⇒ Object
3 4 5 |
# File 'app/models/taxon_name_author.rb', line 3 def self.human_name 'Taxon name author' end |
Instance Method Details
#cached_triggers ⇒ Object (private)
TaxonName authors should only trigger author related updates, not name structure!
14 15 16 |
# File 'app/models/taxon_name_author.rb', line 14 def cached_triggers return { TaxonName: [:set_cached_author_columns ] } end |
#year_active_year ⇒ Object
7 8 9 |
# File 'app/models/taxon_name_author.rb', line 7 def year_active_year role_object.year_of_publication end |