Sha256: 58ca6677a52c93b9f9c784925a5c6e16ac26b4d64a291b053828c431c4021370

Contents?: true

Size: 693 Bytes

Versions: 26

Compression:

Stored size: 693 Bytes

Contents

# == Schema Information
#
# Table name: lentil_tagsets
#
#  id          :integer          not null, primary key
#  title       :string(255)
#  description :text
#  created_at  :datetime         not null
#  updated_at  :datetime         not null
#  harvest     :boolean          default(FALSE)
#

class Lentil::Tagset < ActiveRecord::Base
  attr_accessible :description, :title, :harvest, :tag_ids

  attr_accessor :remove_tagset

  has_many :tagset_assignments, :dependent => :destroy
  has_many :tags, :through => :tagset_assignments

  # validates_presence_of :title
  validates :title, {:presence => true, :uniqueness => {:case_sensitive => false}}
  validates :tags, :presence => true
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
lentil-0.9.1 app/models/lentil/tagset.rb
lentil-0.9.0 app/models/lentil/tagset.rb
lentil-0.8.0 app/models/lentil/tagset.rb
lentil-0.7.1 app/models/lentil/tagset.rb
lentil-0.6.0 app/models/lentil/tagset.rb
lentil-0.5.2 app/models/lentil/tagset.rb
lentil-0.5.1 app/models/lentil/tagset.rb
lentil-0.5.0 app/models/lentil/tagset.rb
lentil-0.4.2 app/models/lentil/tagset.rb
lentil-0.4.0 app/models/lentil/tagset.rb
lentil-0.3.1 app/models/lentil/tagset.rb
lentil-0.3.0 app/models/lentil/tagset.rb
lentil-0.2.3 app/models/lentil/tagset.rb
lentil-0.2.2 app/models/lentil/tagset.rb
lentil-0.2.1 app/models/lentil/tagset.rb
lentil-0.2.0 app/models/lentil/tagset.rb
lentil-0.1.8 app/models/lentil/tagset.rb
lentil-0.1.7 app/models/lentil/tagset.rb
lentil-0.1.6 app/models/lentil/tagset.rb
lentil-0.1.3 app/models/lentil/tagset.rb