Sfoglia il codice sorgente

Fetch all feeds through delayed job

master
Adrian Short 11 anni fa
parent
commit
179d5957bb
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      app/models/feed.rb

+ 1
- 1
app/models/feed.rb Vedi File

@@ -9,7 +9,7 @@ class Feed < ActiveRecord::Base
after_create :fetch
def self.fetch_all
Feed.all.each { |f| f.fetch }
Feed.all.each { |f| f.delay.fetch }
end

# Fetch and parse feed contents from web


Caricamento…
Annulla
Salva