durran-validatable 1.8.1 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.yml +1 -1
- data/lib/macros.rb +3 -3
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/macros.rb
CHANGED
@@ -232,7 +232,7 @@ module Validatable
|
|
232
232
|
# * message - The message to add to the errors collection when the validation fails
|
233
233
|
# * if - A block that when executed must return true of the validation will not occur
|
234
234
|
def validates_uniqueness_of(*args)
|
235
|
-
add_validations(args,
|
235
|
+
add_validations(args, ValidatesUniquenessOf)
|
236
236
|
end
|
237
237
|
|
238
238
|
# call-seq: validates_inclusion_of(*args)
|
@@ -250,7 +250,7 @@ module Validatable
|
|
250
250
|
# * message - The message to add to the errors collection when the validation fails
|
251
251
|
# * if - A block that when executed must return true of the validation will not occur
|
252
252
|
def validates_inclusion_of(*args)
|
253
|
-
add_validations(args,
|
253
|
+
add_validations(args, ValidatesInclusionOf)
|
254
254
|
end
|
255
255
|
|
256
256
|
# call-seq: validates_exclusion_of(*args)
|
@@ -268,7 +268,7 @@ module Validatable
|
|
268
268
|
# * message - The message to add to the errors collection when the validation fails
|
269
269
|
# * if - A block that when executed must return true of the validation will not occur
|
270
270
|
def validates_exclusion_of(*args)
|
271
|
-
add_validations(args,
|
271
|
+
add_validations(args, ValidatesExclusionOf)
|
272
272
|
end
|
273
273
|
|
274
274
|
# call-seq: include_validations_from(attribute)
|