fix error
This commit is contained in:
parent
ed065e5cb3
commit
b5fbe80a7c
|
@ -5,7 +5,7 @@ module Feeds
|
|||
begin
|
||||
require File.expand_path('../../../app/models/site_feed', __FILE__)
|
||||
require File.expand_path('../../../app/models/site_feed_annc', __FILE__)
|
||||
if defined?(SiteFeed) && defined?(SiteFeedAnnc)
|
||||
if ENV['worker_num']=='0' && File.basename($0) != 'rake' && !Rails.const_defined?('Console') && defined?(SiteFeed) && defined?(SiteFeedAnnc)
|
||||
SiteFeed.each do |site_feed|
|
||||
tmp = SiteFeedAnnc.where(feed_id: site_feed.id).first
|
||||
if site_feed.disabled != true
|
||||
|
|
Loading…
Reference in New Issue