Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module PAS
- RedisConfig = File.join(Rails.root, "config", "redis.yml")
- def self.redis
- return @redis if @redis
- @redis = Redis.new(YAML::load(File.open(RedisConfig)))
- end
- def self.redis=(redis)
- @redis = redis
- end
- end
Add Comment
Please, Sign In to add comment