mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 16:21:24 -05:00
15 lines
340 B
Ruby
15 lines
340 B
Ruby
|
# https://github.com/redis/redis-rb/pull/591
|
||
|
class Redis
|
||
|
class Client
|
||
|
alias_method :old_initialize, :initialize
|
||
|
|
||
|
def initialize(options = {})
|
||
|
old_initialize(options)
|
||
|
|
||
|
if options.include?(:connector) && options[:connector].is_a?(Class)
|
||
|
@connector = options[:connector].new(@options)
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|