|
@@ -9,7 +9,7 @@ class Feed < ActiveRecord::Base |
|
|
after_create :fetch |
|
|
after_create :fetch |
|
|
|
|
|
|
|
|
def self.fetch_all |
|
|
def self.fetch_all |
|
|
Feed.all.each { |f| f.fetch } |
|
|
|
|
|
|
|
|
Feed.all.each { |f| f.delay.fetch } |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
# Fetch and parse feed contents from web |
|
|
# Fetch and parse feed contents from web |
|
|