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.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/macros.rb +3 -3
  3. metadata +1 -1
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 8
3
- :patch: 1
3
+ :patch: 2
4
4
  :major: 1
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, ValidatesAssociated)
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, ValidatesAssociated)
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, ValidatesAssociated)
271
+ add_validations(args, ValidatesExclusionOf)
272
272
  end
273
273
 
274
274
  # call-seq: include_validations_from(attribute)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: durran-validatable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.1
4
+ version: 1.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Fields