From d7b5e018043729796d5a7ab2bcc9c9bebbbb484c Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Wed, 20 Jun 2012 17:15:50 +0100 Subject: [PATCH] Don't double-validate link --- app/models/feed.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/feed.rb b/app/models/feed.rb index 5f1b565..87361d3 100644 --- a/app/models/feed.rb +++ b/app/models/feed.rb @@ -6,6 +6,6 @@ class Feed key :last_fetched, Time, :default => nil timestamps! - validates :title, :link, :presence => true + validates :title, :presence => true validates_format_of :link, :with => URI::regexp(%w(http https)), :message => "must be a valid URL" end