lib/economy/cache.rb in economy-4.0.2.2 vs lib/economy/cache.rb in economy-5.1.0
- old
+ new
@@ -12,16 +12,16 @@
def clear
del 'exchanges/*'
end
def method_missing(name, *args, &block)
- client.public_send name, *args, &block
+ redis.public_send name, *args, &block
end
private
- def client
- @client ||= begin
+ def redis
+ @redis ||= begin
require 'redis'
Redis.new YAML.load_file("#{Rails.root}/config/redis.yml")[Rails.env]
end
end