mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
remove unused method.
This commit is contained in:
parent
a5f9703446
commit
903eabc1e4
1 changed files with 0 additions and 8 deletions
|
@ -1,15 +1,10 @@
|
|||
require 'redis'
|
||||
|
||||
class RedisWidget
|
||||
|
||||
def self.redis
|
||||
threaded ||= Redis.new
|
||||
end
|
||||
|
||||
def self.redis=(connection)
|
||||
threaded = connection
|
||||
end
|
||||
|
||||
def self.threaded
|
||||
Thread.current[self.class.to_s] ||= {}
|
||||
end
|
||||
|
@ -38,12 +33,10 @@ class RedisWidget
|
|||
|
||||
def self.create!
|
||||
new(:name => 'some widget').save
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class RedisWidgetUsingDatabaseOne < RedisWidget
|
||||
|
||||
def self.redis
|
||||
threaded[self.class.to_s] ||= Redis.new :url => ENV['REDIS_URL_ONE']
|
||||
end
|
||||
|
@ -54,7 +47,6 @@ class RedisWidgetUsingDatabaseOne < RedisWidget
|
|||
end
|
||||
|
||||
class RedisWidgetUsingDatabaseTwo < RedisWidget
|
||||
|
||||
def self.redis
|
||||
threaded[self.class.to_s] ||= Redis.new :url => ENV['REDIS_URL_TWO']
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue