From 5e65c94ab6b0cf1fa4ac4b6e98a2e509a29e0c5d Mon Sep 17 00:00:00 2001 From: Lee Lawlor Date: Wed, 9 Jul 2014 11:44:37 -0400 Subject: [PATCH] remove unused gem --- Gemfile | 1 - Gemfile.lock | 3 --- app/jobs/clear_channel_job.rb | 1 + 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index eb87354..e19c34d 100644 --- a/Gemfile +++ b/Gemfile @@ -20,7 +20,6 @@ gem 'dynamic_form' gem 'geokit' gem 'redis' gem 'resque-scheduler', '2.3.1', :require => 'resque_scheduler' -gem 'resque-timeout' gem 'daemons' #gem 'db2fog' (not compatible with Rails 4, see https://github.com/hakanensari/db2fog for Rails 4 version) gem 'simplificator-rwebthumb', :git => "git://github.com/simplificator/rwebthumb.git" diff --git a/Gemfile.lock b/Gemfile.lock index f5f6cf8..d11849a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -253,8 +253,6 @@ GEM redis (>= 3.0.0) resque (~> 1.25) rufus-scheduler (~> 2.0) - resque-timeout (1.0.0) - resque (~> 1.0) rspec (2.14.1) rspec-core (~> 2.14.0) rspec-expectations (~> 2.14.0) @@ -378,7 +376,6 @@ DEPENDENCIES rails_autolink redis resque-scheduler (= 2.3.1) - resque-timeout rspec-rails (~> 2.14.1) sass-rails (= 4.0.2) simplificator-rwebthumb! diff --git a/app/jobs/clear_channel_job.rb b/app/jobs/clear_channel_job.rb index 1b37269..248601e 100644 --- a/app/jobs/clear_channel_job.rb +++ b/app/jobs/clear_channel_job.rb @@ -2,6 +2,7 @@ class ClearChannelJob @queue = :clear_channel def self.perform(channel_id) + # delete feeds Feed.delete_in_batches(channel_id) DailyFeed.delete_all(["channel_id = ?", channel_id]) if channel = Channel.find(channel_id)