Skip to content
This repository
Browse code

Use #require_library_or_gem to load the memcache library for the MemC…

…ache session and fragment cache stores. Closes #8662. [Rick]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7725 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 408f4964022a4ff47c24763af350c6d527855552 1 parent 904df81
risk danger olson authored October 03, 2007
2  actionpack/CHANGELOG
... ...
@@ -1,5 +1,7 @@
1 1
 *SVN*
2 2
 
  3
+* Use #require_library_or_gem to load the memcache library for the MemCache session and fragment cache stores.  Closes #8662. [Rick]
  4
+
3 5
 * Move ActionController::Routing.optimise_named_routes to ActionController::Base.optimise_named_routes.  Now you can set it in the config. [Rick]
4 6
 
5 7
   config.action_controller.optimise_named_routes = false
1  actionpack/lib/action_controller/caching.rb
@@ -485,6 +485,7 @@ def initialize(address = 'druby://localhost:9192')
485 485
         end
486 486
       end
487 487
 
  488
+      require_library_or_gem 'memcache'
488 489
       class MemCacheStore < MemoryStore #:nodoc:
489 490
         attr_reader :addresses
490 491
 
2  actionpack/lib/action_controller/session/mem_cache_store.rb
@@ -9,7 +9,7 @@
9 9
 
10 10
 begin
11 11
   require 'cgi/session'
12  
-  require 'memcache'
  12
+  require_library_or_gem 'memcache'
13 13
 
14 14
   class CGI
15 15
     class Session

0 notes on commit 408f496

Please sign in to comment.
Something went wrong with that request. Please try again.