summaryrefslogtreecommitdiff
path: root/app/models/fax_resolution.rb
blob: c9093fb1ee59eb159021cec5d37c0265161c9bdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class FaxResolution < ActiveRecord::Base
  validates_presence_of :name
  validates_presence_of :resolution_value
  
  validates_uniqueness_of :name
  validates_uniqueness_of :resolution_value
  
  has_many :fax_documents, :dependent => :destroy
  
  acts_as_list
  
  def to_s
    self.name
  end
end