root/app/models/artwork_set.rb @ 15ec0432
b689e231 | Marc Dequènes (Duck) | class ArtworkSet < ActiveRecord::Base
|
|
has_many :artworks, :order => "title ASC"
|
|||
has_many :artwork_groups, :order => "name ASC", :dependent => :destroy
|
|||
validates_presence_of :name
|
|||
validates_uniqueness_of :name
|
|||
validates_length_of :name, :within => 1..128, :allow_blank => true
|
|||
end
|