root/app/models/artwork_material.rb @ 400c9573
b689e231 | Marc Dequènes (Duck) | class ArtworkMaterial < ActiveRecord::Base
|
|
3807b362 | Marc Dequènes (Duck) | has_and_belongs_to_many :artworks, :order => "title ASC"
|
|
b689e231 | Marc Dequènes (Duck) | ||
validates_presence_of :name
|
|||
validates_uniqueness_of :name
|
|||
validates_length_of :name, :within => 1..128, :allow_blank => true
|
|||
end
|