Sha256: 21fdd1b28c307edc05af2efbbfee8dd4325ec7d3ddf12236a5873c6479de4a05

Contents?: true

Size: 268 Bytes

Versions: 1

Compression:

Stored size: 268 Bytes

Contents

module Watchtower
  class Tag < ActiveRecord::Base
    attr_accessible :name

    has_many :taggings, :class_name => "Watchtower::Tagging"
    has_many :contacts, :through => :taggings

    validates :name, :presence => true

    def to_s
      name
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watchtower-0.0.1 app/models/watchtower/tag.rb