Sha256: 3811239018c80d950bdaf3c197b40cc23edb75bc207b173b2972defe8d3cb6d2
Contents?: true
Size: 470 Bytes
Versions: 3
Compression:
Stored size: 470 Bytes
Contents
class Tagging < ActiveRecord::Base #:nodoc: belongs_to :tag belongs_to :taggable, :polymorphic => true belongs_to :tagger, :polymorphic => true validates_presence_of :context acts_as_list :scope => 'taggable_id = #{taggable_id} AND taggable_type = \'#{taggable_type}\' AND context = \'#{context}\'' default_scope :order => 'position' validates_presence_of :tag_id validates_uniqueness_of :tag_id, :scope => [:taggable_type, :taggable_id, :context] end
Version data entries
3 entries across 3 versions & 1 rubygems