nkallen / cache-money

A Write-Through Cacheing Library for ActiveRecord
Apache License 2.0
994 stars 107 forks source link

Documentation fix for gem usage #16

Closed paulbjensen closed 4 years ago

paulbjensen commented 14 years ago

I just tried to use the gem as described in the docs, and I got this error:

`load_missing_constant': uninitialized constant MemCache (NameError)

I added the memcache-client rubygem as a gem dependency in my rails app's environment.rb file:

config.gem 'memcache-client',     :source => 'http://gemcutter.org', :lib => "memcache"

and modified the config/initializers/cache_money.rb file like so:

1: require 'cache_money'
2: require 'memcache'

This fixed that issue. Could someone update the docs?

baron commented 14 years ago

thanks for this info. Would be nice to update this and gem specs as well.

paulbjensen commented 4 years ago

Closing as this is an old issue.