Skip to content

Commit

Permalink
merge passed options
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetrans-deploy committed Jan 6, 2011
1 parent 10ec012 commit f18cd30
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -13,7 +13,7 @@ def initialize(app, options = {})
@default_options = {
:namespace => 'rack:session',
:memcache_server => 'localhost:11211'
}.merge(@default_options)
}.merge(options)

@pool = options[:cache] || MemCache.new(@default_options[:memcache_server], @default_options)
unless @pool.servers.any? { |s| s.alive? }
Expand Down

0 comments on commit f18cd30

Please sign in to comment.