Browse Source

Fetch all feeds through delayed job

master
Adrian Short 11 years ago
parent
commit
179d5957bb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/feed.rb

+ 1
- 1
app/models/feed.rb View 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


Loading…
Cancel
Save