Created
April 23, 2016 07:42
-
-
Save Kalimaha/bc6a8e558f6cc2f11a43a72d4e1c4134 to your computer and use it in GitHub Desktop.
Application Helper - init Method
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def init_redis | |
| @redis = Redis.new(:host => Rails.configuration.x.redis.host, | |
| :port => Rails.configuration.x.redis.port, | |
| :password => Rails.configuration.x.redis.password) if @redis == nil | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment