Permalink
Browse files

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...
1 parent 904df81 commit 408f4964022a4ff47c24763af350c6d527855552 @technoweenie technoweenie committed Oct 3, 2007
@@ -1,5 +1,7 @@
*SVN*
+* Use #require_library_or_gem to load the memcache library for the MemCache session and fragment cache stores. Closes #8662. [Rick]
+
* Move ActionController::Routing.optimise_named_routes to ActionController::Base.optimise_named_routes. Now you can set it in the config. [Rick]
config.action_controller.optimise_named_routes = false
@@ -485,6 +485,7 @@ def initialize(address = 'druby://localhost:9192')
end
end
+ require_library_or_gem 'memcache'
class MemCacheStore < MemoryStore #:nodoc:
attr_reader :addresses
@@ -9,7 +9,7 @@
begin
require 'cgi/session'
- require 'memcache'
+ require_library_or_gem 'memcache'
class CGI
class Session

0 comments on commit 408f496

Please sign in to comment.