aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-06-01 05:06:17 -0300
committerJosé Valim <jose.valim@gmail.com>2010-06-01 10:46:05 +0200
commit57144388f0b4c31e43ced7cfd1d6efaded88cf5e (patch)
tree8256400adb9fc91f46cc2a36d5143a5ebf54442a /activesupport/lib
parent31e1445a8194f1eab70ac8c7d45797f0708c6c8e (diff)
downloadrails-57144388f0b4c31e43ced7cfd1d6efaded88cf5e.tar.gz
rails-57144388f0b4c31e43ced7cfd1d6efaded88cf5e.tar.bz2
rails-57144388f0b4c31e43ced7cfd1d6efaded88cf5e.zip
Unforce memcache from AS
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/cache/mem_cache_store.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/cache/mem_cache_store.rb b/activesupport/lib/active_support/cache/mem_cache_store.rb
index d8377a208f..e3a2688e2f 100644
--- a/activesupport/lib/active_support/cache/mem_cache_store.rb
+++ b/activesupport/lib/active_support/cache/mem_cache_store.rb
@@ -1,4 +1,9 @@
-require 'memcache'
+begin
+ require 'memcache'
+rescue LoadError => e
+ $stderr.puts "You don't have memcache installed in your application. Please add it to your Gemfile and run bundle install"
+ raise e
+end
require 'digest/md5'
module ActiveSupport