Sha256: 05180b084a76aedf941d640fb2c884caec8b9d547c97111fbb94c9c800fa9924
Contents?: true
Size: 336 Bytes
Versions: 1
Compression:
Stored size: 336 Bytes
Contents
class Gutentag::Tag < ActiveRecord::Base has_many :taggings, :class_name => 'Gutentag::Tagging', :dependent => :destroy validates :name, :presence => true, :uniqueness => {:case_sensitive => false} before_validation :normalise_name private def normalise_name self.name = Gutentag::TagName.normalise name end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gutentag-0.2.0 | app/models/gutentag/tag.rb |