lib/aws/record/validators/inclusion.rb in aws-sdk-1.8.0 vs lib/aws/record/validators/inclusion.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
#
@@ -17,10 +17,10 @@
module Record
# @private
class InclusionValidator < Validator
- ACCEPTED_OPTIONS = [:in, :message, :allow_nil, :on, :if, :unless]
+ ACCEPTED_OPTIONS = [:in, :message, :allow_nil, :allow_blank, :on, :if, :unless]
def setup record_class
ensure_present(:in)
ensure_type(Enumerable, :in)
end