Sha256: f42a742e552bf25bbd9837efea86c621e66091c271b1337c3dab5897f94a6cd6
Contents?: true
Size: 689 Bytes
Versions: 13
Compression:
Stored size: 689 Bytes
Contents
class Tagging < ActiveRecord::Base #:nodoc: include ActsAsTaggableOn::ActiveRecord::Backports if ActiveRecord::VERSION::MAJOR < 3 attr_accessible :tag, :tag_id, :context, :taggable, :taggable_type, :taggable_id, :tagger, :tagger_type, :tagger_id belongs_to :tag belongs_to :taggable, :polymorphic => true belongs_to :tagger, :polymorphic => true validates_presence_of :context validates_presence_of :tag_id validates_uniqueness_of :tag_id, :scope => [ :taggable_type, :taggable_id, :context, :tagger_id, :tagger_type ] end
Version data entries
13 entries across 13 versions & 3 rubygems