Class: JobTemplate
- Inherits:
-
Template
- Object
- Template
- JobTemplate
- Extended by:
- FriendlyId
- Includes:
- Authorizable, Parameterizable::ByIdName, Taxonomix
- Defined in:
- app/models/job_template.rb
Class Method Summary collapse
-
.base_class ⇒ Object
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.
Instance Method Summary collapse
-
#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.
Class Method Details
.base_class ⇒ Object
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 |