Class: Template

Inherits:
Composition show all
Defined in:
app/models/template.rb

Overview

A Template is a reusable Composition structure, e.g. a pattern for rendering labels.

Subclasses that reference only model attributes and attribute modifiers, not instance data, may be shared across projects, see Composition.community_permitted?.

Instance Attribute Summary

Attributes inherited from Composition

#description, #is_community, #name, #project_id, #type

Method Summary

Methods inherited from Composition

#annotates_community_object?, #community_has_no_item_objects, community_permitted?, #is_community?, #is_community_is_permitted, select_optimized, #set_community_project_id, #set_composition_items_project_id, used_recently

Methods included from Shared::Pinnable

#inserted?, #pinboard_item_for, #pinned?

Methods included from Housekeeping

#has_polymorphic_relationship?

Methods inherited from ApplicationRecord

transaction_with_retry