瀏覽代碼

Fetch all feeds through delayed job

master
Adrian Short 11 年之前
父節點
當前提交
179d5957bb
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      app/models/feed.rb

+ 1
- 1
app/models/feed.rb 查看文件

@@ -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…
取消
儲存