Class: JobTemplate

Inherits:
Template
  • Object
show all
Extended by:
FriendlyId
Includes:
Authorizable, Parameterizable::ByIdName, Taxonomix
Defined in:
app/models/job_template.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.base_classObject

we have to override the base_class because polymorphic associations does not detect it correctly, more details at apidock.com/rails/ActiveRecord/Associations/ClassMethods/has_many#1010-Polymorphic-has-many-within-inherited-class-gotcha



35
36
37
# File 'app/models/job_template.rb', line 35

def self.base_class
  self
end

Instance Method Details

#used_taxonomy_ids(type) ⇒ Object

Override method in Taxonomix as Template is not used attached to a Host, and matching a Host does not prevent removing a template from its taxonomy.



42
43
44
# File 'app/models/job_template.rb', line 42

def used_taxonomy_ids(type)
  []
end