Sha256: 0b7a0a24dbe0da4b2b71e8b68684165bc902e1072d3406e4a00c3c0099ced5bb
Contents?: true
Size: 318 Bytes
Versions: 6
Compression:
Stored size: 318 Bytes
Contents
module Cms class Tagging < ActiveRecord::Base belongs_to :tag, :class_name => 'Cms::Tag' belongs_to :taggable, :polymorphic => true, :class_name => 'Cms::Taggable', :foreign_type => 'taggable_type' def content_type Cms::ContentType.first(:conditions => {:name => taggable_type}) end end end
Version data entries
6 entries across 6 versions & 1 rubygems