Sha256: b31108785ef694ff000084e8040fec4d9cf01b094e516c420b3d5301ed6ee79d
Contents?: true
Size: 385 Bytes
Versions: 11
Compression:
Stored size: 385 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' include 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 & 1 rubygems