Sha256: 94d3e48b8b43537380fbbd91bf70d31ced0467d94baa4528852fda37e66bb364
Contents?: true
Size: 384 Bytes
Versions: 11
Compression:
Stored size: 384 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' extend DefaultAccessible #attr_accessible :tag, :taggable def content_type Cms::ContentType.first(:conditions => {:name => taggable_type}) end end end
Version data entries
11 entries across 11 versions & 2 rubygems