Skip to content

Commit

Permalink
remove unneeded methods
Browse files Browse the repository at this point in the history
  • Loading branch information
nightshade427 authored and rbriank committed May 6, 2010
1 parent 6bca5a2 commit 3864d28
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions lib/delayed/backend/couch_rest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ def self.clear_locks!(worker_name)
def self.delete_all
database.bulk_save all.each { |doc| doc['_deleted'] = true }
end
def self.db=(db_to_use)
use_database ::CouchRest::Server.new.database(db_to_use)
end

def lock_exclusively!(max_run_time, worker = worker_name)
return false if locked_by_other?(worker) and not expired?(max_run_time)
Expand Down
4 changes: 1 addition & 3 deletions spec/setup/couch_rest.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
require 'couchrest'
require 'delayed/backend/couch_rest'

db = 'delayed_job_spec'
CouchRest::Server.new.database!(db)
Delayed::Backend::CouchRest::Job.db = db
Delayed::Backend::CouchRest::Job.use_database CouchRest::Server.new.database!('delayed_job_spec')

0 comments on commit 3864d28

Please sign in to comment.