Project

General

Profile

Download (362 Bytes) Statistics
| Branch: | Tag: | Revision:

root / app / models / artwork_support.rb @ 70e65017

1
class ArtworkSupport < ActiveRecord::Base
2
  has_and_belongs_to_many :artworks, :order => "title ASC"
3

    
4
  validates_presence_of :name
5
  validates_uniqueness_of :name
6
  validates_uniqueness_of :acronym, :allow_nil => true
7
  validates_length_of :name, :within => 1..128, :allow_blank => true
8
  validates_length_of :acronym, :within => 1..8, :allow_blank => true
9
end
(11-11/12)