From: martyntaylor <[email protected]>

---
 src/app/models/quota.rb |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/app/models/quota.rb b/src/app/models/quota.rb
index 83c20c4..cfc4555 100644
--- a/src/app/models/quota.rb
+++ b/src/app/models/quota.rb
@@ -28,14 +28,16 @@ class Quota < ActiveRecord::Base
   validates_numericality_of :maximum_total_instances,
                             :greater_than_or_equal_to => 0,
                             :less_than_or_equal_to => 2147483647,
-                            :integer_only => true,
-                            :allow_nil => true
+                            :only_integer => true,
+                            :allow_nil => true,
+                            :message => "must be a positive whole number less 
than 2147483647"
 
   validates_numericality_of :maximum_running_instances,
                             :greater_than_or_equal_to => 0,
                             :less_than_or_equal_to => 2147483647,
-                            :integer_only => true,
-                            :allow_nil => true
+                            :only_integer => true,
+                            :allow_nil => true,
+                            :message => "must be a positive whole number less 
than 2147483647"
 
   QuotaResource = Struct.new(:name, :used, :max, :available, :unit)
 
-- 
1.7.2.3

_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Reply via email to