Sha256: 916d5afb07b8722fd7c54447e791cd4198043a7ebcbf3842256781df5d827c15
Contents?: true
Size: 443 Bytes
Versions: 23
Compression:
Stored size: 443 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: CamaManager.get_user_class_name, foreign_key: :user_id end
Version data entries
23 entries across 23 versions & 2 rubygems