Sha256: f903b634c4543f7d527433bfb32421c51ad8d726c628e83129e8d992de81b8f1

Contents?: true

Size: 459 Bytes

Versions: 2

Compression:

Stored size: 459 Bytes

Contents

module CamaleonCms
  class PostTag < CamaleonCms::TermTaxonomy
    include CamaleonCms::CommonRelationships

    default_scope { where(taxonomy: :post_tag) }

    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

2 entries across 2 versions & 1 rubygems

Version Path
camaleon_cms-2.7.2 app/models/camaleon_cms/post_tag.rb
camaleon_cms-2.7.1 app/models/camaleon_cms/post_tag.rb