1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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
This commit is contained in:
Jeremy Kemper 2005-10-29 23:12:13 +00:00
parent eaf296f8fc
commit 54a4e50662

View file

@ -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