Hey Martyn,

When I go to the self-service page (System Settings -> Permissions) and 
enter wrong values (1.5 or "oeurehrn"), I still get the "Settings 
Updated!" message (though the wrong value is not saved now).

Please fix it and resend.

Thanks,
Thomas


On 10/25/2010 12:47 PM, [email protected] wrote:
> 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)
>
_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Reply via email to