public
Fork of thoughtbot/shoulda
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/boone/shoulda.git
shoulda / test / rails_root / app / models / tag.rb
100644 9 lines (6 sloc) 0.168 kb
1
2
3
4
5
6
7
8
9
class Tag < ActiveRecord::Base
  has_many :taggings
  has_many :posts, :through => :taggings
  
  validates_length_of :name, :minimum => 2
 
  attr_accessible :name
end