Sha256: 151ae23df1dddae5cb12dec5a093dfac9e0b0d8bb41271a1b53a62116e35eb44

Contents?: true

Size: 222 Bytes

Versions: 2

Compression:

Stored size: 222 Bytes

Contents

class Tagging < ActiveRecord::Base
  belongs_to :tag
  belongs_to :taggable, :polymorphic => true
  
  validates_uniqueness_of :taggable_id, :scope => :tag_id
  
  attr_accessible :taggable_type, :taggable_id, :tag_id
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
scoped-tags-0.3.1 lib/scoped_tags/tagging.rb
scoped-tags-0.3.0 lib/scoped_tags/tagging.rb