doing a sanity check, that not requiring serialized key passes the validation

This commit is contained in:
ilya 2010-08-19 14:25:34 -07:00
parent 501d62f215
commit 542c1769f9

View file

@ -27,7 +27,7 @@ class Person
before_destroy :remove_all_traces
before_validation :clean_url
validates_presence_of :email, :url, :profile, :serialized_key
validates_presence_of :email, :url, :profile#, :serialized_key
validates_format_of :url, :with =>
/^(https?):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*(\.[a-z]{2,5})?(:[0-9]{1,5})?(\/.*)?$/ix