mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user