Sha256: fc4e3001bfab9f6d669bf799a5a53e18212bbace034964d3b20902b64e6d954a

Contents?: true

Size: 310 Bytes

Versions: 2

Compression:

Stored size: 310 Bytes

Contents

class Tagging < ActiveRecord::Base #:nodoc:
  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]
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acts-as-taggable-on-1.0.17 lib/acts_as_taggable_on/tagging.rb
acts-as-taggable-on-1.0.16 lib/acts_as_taggable_on/tagging.rb