Sha256: 15af7ef895c91b6931f93eb17a0867ef5ea157ec227d22b2659d2b78e1064e3b
Contents?: true
Size: 489 Bytes
Versions: 18
Compression:
Stored size: 489 Bytes
Contents
class CamaleonCms::PostTag < CamaleonCms::TermTaxonomy default_scope { where(taxonomy: :post_tag) } cama_define_common_relationships('PostTag') has_many :posts, foreign_key: :objectid, through: :term_relationships, :source => :objects belongs_to :post_type, class_name: "CamaleonCms::PostType", foreign_key: :parent_id, inverse_of: :post_tags belongs_to :owner, class_name: PluginRoutes.static_system_info['user_model'].presence || 'CamaleonCms::User', foreign_key: :user_id end
Version data entries
18 entries across 18 versions & 1 rubygems