Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `connect' for Redis:Class #449

Open
smondalwsgc opened this issue Nov 11, 2019 · 3 comments
Open

undefined method `connect' for Redis:Class #449

smondalwsgc opened this issue Nov 11, 2019 · 3 comments

Comments

@smondalwsgc
Copy link

smondalwsgc commented Nov 11, 2019

I see websocket-rails using old redis version. Redis has no longer support connect method.
Here is the changelog. Redis has changed this long back 1 Nov 2015

redis/redis-rb@895cc32#diff-4ac32a78649ca5bdd8e0ba38b7006a1eR3.

Can you please support websocket-rails with latest redis? Or should I create pull request?

@Glaubenio
Copy link

+1

@prsanjay
Copy link

prsanjay commented Oct 1, 2020

Is this still open?

@zeeq911
Copy link

zeeq911 commented Jan 3, 2021

I ran into this problem recently. my workaround fo was to bring back the connect method to Redis by creating an initializer that will add the method to the Redis class.
Create a new file config/initializers/redis.rb and add the following to it

Redis.class_eval do
 def self.connect(options = {})
   new(options)
 end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants