Ver a proveniência

Don't double-validate link

master
Adrian Short há 12 anos
ascendente
cometimento
d7b5e01804
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      app/models/feed.rb

+ 1
- 1
app/models/feed.rb Ver ficheiro

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

Carregando…
Cancelar
Guardar