Selaa lähdekoodia

Don't double-validate link

master
Adrian Short 12 vuotta sitten
vanhempi
commit
d7b5e01804
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      app/models/feed.rb

+ 1
- 1
app/models/feed.rb Näytä tiedosto

@@ -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

Ladataan…
Peruuta
Tallenna