summaryrefslogtreecommitdiff
path: root/app/models/fax_resolution.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/fax_resolution.rb')
-rw-r--r--app/models/fax_resolution.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/models/fax_resolution.rb b/app/models/fax_resolution.rb
new file mode 100644
index 0000000..c9093fb
--- /dev/null
+++ b/app/models/fax_resolution.rb
@@ -0,0 +1,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