lib/kredis/railtie.rb in kredis-0.4.0 vs lib/kredis/railtie.rb in kredis-1.0.0
- old
+ new
@@ -10,9 +10,13 @@
initializer "kredis.logger" do
Kredis::LogSubscriber.logger = config.kredis.logger || Rails.logger
end
+ initializer "kredis.configuration" do
+ Kredis::Connections.connector = config.kredis.connector || ->(config) { Redis.new(config) }
+ end
+
initializer "kredis.configurator" do
Kredis.configurator = Rails.application
end
initializer "kredis.attributes" do