doing a sanity check, that not requiring serialized key passes the validation
This commit is contained in:
parent
501d62f215
commit
542c1769f9
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue