Sha256: e9e69077f4f462749a157c3c68a8332b05267c138a77dbe498b9517f134890a7
Contents?: true
Size: 461 Bytes
Versions: 5
Compression:
Stored size: 461 Bytes
Contents
module CamaleonCms class PostTag < CamaleonCms::TermTaxonomy default_scope { where(taxonomy: :post_tag) } cama_define_common_relationships('PostTag') has_many :posts, foreign_key: :objectid, through: :term_relationships, source: :object belongs_to :post_type, foreign_key: :parent_id, inverse_of: :post_tags, required: false belongs_to :owner, class_name: CamaManager.get_user_class_name, foreign_key: :user_id, required: false end end
Version data entries
5 entries across 5 versions & 1 rubygems