lib/validatious/helper_methods.rb in validatious-0.3.0 vs lib/validatious/helper_methods.rb in validatious-0.4.0
- old
+ new
@@ -8,9 +8,13 @@
def validates_email_format_of(*attr_names)
validates_with EmailValidator, _merge_attributes(attr_names)
end
+ def validates_postal_code_format_of(*attr_names)
+ validates_with PostalCodeValidator, _merge_attributes(attr_names)
+ end
+
def validates_text_content_of(*attr_names)
validates_with TextContentValidator, _merge_attributes(attr_names)
end
end
\ No newline at end of file