Skip to content

Instantly share code, notes, and snippets.

@jfernandez
Created July 20, 2010 17:39
Show Gist options
  • Save jfernandez/483267 to your computer and use it in GitHub Desktop.
Save jfernandez/483267 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment