From 60b272b243b4d3d0a8a76259e53c08f2de0d6c9c Mon Sep 17 00:00:00 2001 From: danielvincent Date: Sat, 13 Nov 2010 14:55:40 -0800 Subject: [PATCH] remove validations on url for now to support ip addresses in pod_url field in app_config.yml --- app/models/person.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/person.rb b/app/models/person.rb index 70a961f0e..19eef2969 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -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