root/app/models/technique.rb @ 4fe0d35d
b689e231 | Marc Dequènes (Duck) | class Technique < ActiveRecord::Base
|
|
has_and_belongs_to_many :artworks, :order => "title ASC"
|
|||
validates_presence_of :name
|
|||
validates_uniqueness_of :name
|
|||
validates_uniqueness_of :acronym, :allow_nil => true
|
|||
validates_length_of :name, :within => 1..128, :allow_blank => true
|
|||
validates_length_of :acronym, :within => 1..8, :allow_blank => true
|
|||
end
|