Sha256: 49905a3f9750d65f9d2e9b56e2e24785f13e8bfd0463cdbe69c271babb1a8fb4
Contents?: true
Size: 562 Bytes
Versions: 14
Compression:
Stored size: 562 Bytes
Contents
# == Schema Information # # Table name: lentil_tags # # id :integer not null, primary key # name :string(255) # created_at :datetime not null # updated_at :datetime not null # class Lentil::Tag < ActiveRecord::Base attr_accessible :name, :staff_tag has_many :tagset_assignments has_many :tagsets, :through=>:tagset_assignments has_many :taggings has_many :images, :through=>:taggings validates_presence_of :name scope :harvestable, where(:lentil_tagsets => {:harvest => true}).includes(:tagsets) end
Version data entries
14 entries across 14 versions & 1 rubygems