mirror of https://github.com/rails/rails
Updated to new naming style
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@389 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
0f4cba7b86
commit
efdabfb8f5
|
@ -2,8 +2,8 @@ module ActionView
|
|||
module Helpers
|
||||
# See ActionController::Caching::Fragments for usage instructions.
|
||||
module CacheHelper
|
||||
def cache(binding, name, key = nil)
|
||||
@controller.cache_erb_fragment(binding, name, key) { yield }
|
||||
def cache(binding, name = {})
|
||||
@controller.cache_erb_fragment(binding, name) { yield }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue