lib/aws/record/validators/length.rb in aws-sdk-1.8.0 vs lib/aws/record/validators/length.rb in aws-sdk-1.8.1

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # @@ -20,10 +20,10 @@ class LengthValidator < Validator ACCEPTED_OPTIONS = [ :exactly, :within, :minimum, :maximum, :too_long, :too_short, :wrong_length, - :allow_nil, :on, :if, :unless, + :allow_nil, :allow_blank, :on, :if, :unless, ] def setup record_class ensure_at_least_one(:within, :exactly, :minimum, :maximum) ensure_exclusive(:within, :exactly, [:minimum, :maximum])