root/app/models/artwork_condition.rb @ 400c9573
b689e231 | Marc Dequènes (Duck) | class ArtworkCondition < ActiveRecord::Base
|
|
has_many :artworks, :order => "title ASC"
|
|||
validates_presence_of :name
|
|||
validates_uniqueness_of :name
|
|||
validates_length_of :name, :within => 1..64, :allow_blank => true
|
|||
acts_as_list
|
|||
end
|