Sha256: 4f33a145d038e8ab9cf51a86d147c50675755124c46d2eb47005257c07c55d37

Contents?: true

Size: 185 Bytes

Versions: 2

Compression:

Stored size: 185 Bytes

Contents

class TagBat::Tag < ActiveRecord::Base
  has_many :taggings, :class_name => 'TagBat::Tagging',
    :dependent => :destroy

  validates :name, :presence => true, :uniqueness => true
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tag_bat-0.1.0 app/models/tag_bat/tag.rb
tag_bat-0.0.3 app/models/tag_bat/tag.rb