From 54a4e506626e6538c6114ebb6e2756423d533c8f Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sat, 29 Oct 2005 23:12:13 +0000 Subject: Removed erroneous arg-size check in AC::Base.fragment_cache_store=. Closes #2650. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2820 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/caching.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb index 37b3557c5d..7fe699c34e 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -256,7 +256,7 @@ module ActionController #:nodoc: @@fragment_cache_store = if store.is_a?(Symbol) store_class_name = (store == :drb_store ? "DRbStore" : store.to_s.camelize) store_class = ActionController::Caching::Fragments.const_get(store_class_name) - parameters.empty? ? store.new : store_class.new(*parameters) + store_class.new(*parameters) else store end -- cgit v1.2.3