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

Version Path
camaleon_cms-2.4.5.7 app/models/camaleon_cms/post_tag.rb
camaleon_cms-2.4.5.5 app/models/camaleon_cms/post_tag.rb
camaleon_cms-2.4.5.4 app/models/camaleon_cms/post_tag.rb
camaleon_cms-2.4.5.3 app/models/camaleon_cms/post_tag.rb
camaleon_cms-2.4.5.2 app/models/camaleon_cms/post_tag.rb
camaleon_cms-2.4.5.1 app/models/camaleon_cms/post_tag.rb
camaleon_cms-2.4.5 app/models/camaleon_cms/post_tag.rb
camaleon_cms-2.4.4.7 app/models/camaleon_cms/post_tag.rb
camaleon_cms-2.4.4.6 app/models/camaleon_cms/post_tag.rb
camaleon_cms-2.4.4.5 app/models/camaleon_cms/post_tag.rb
camaleon_cms-2.4.4.4 app/models/camaleon_cms/post_tag.rb
camaleon_cms-2.4.4.3 app/models/camaleon_cms/post_tag.rb
camaleon_cms-2.4.4.2 app/models/camaleon_cms/post_tag.rb
camaleon_cms-2.4.4.1 app/models/camaleon_cms/post_tag.rb
camaleon_cms-2.4.4 app/models/camaleon_cms/post_tag.rb
camaleon_cms-2.4.3.13 app/models/camaleon_cms/post_tag.rb
camaleon_cms-2.4.3.12 app/models/camaleon_cms/post_tag.rb
camaleon_cms-2.4.3.11 app/models/camaleon_cms/post_tag.rb