remove validations on url for now to support ip addresses in pod_url field in app_config.yml

This commit is contained in:
danielvincent 2010-11-13 14:55:40 -08:00
parent 969c668518
commit 60b272b243

View file

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