瀏覽代碼

Don't double-validate link

master
Adrian Short 12 年之前
父節點
當前提交
d7b5e01804
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      app/models/feed.rb

+ 1
- 1
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

Loading…
取消
儲存