instiki/vendor/rails/actionpack/lib/action_view/helpers/cache_helper.rb
2007-01-22 07:43:50 -06:00

11 lines
244 B
Ruby

module ActionView
module Helpers
# See ActionController::Caching::Fragments for usage instructions.
module CacheHelper
def cache(name = {}, &block)
@controller.cache_erb_fragment(block, name)
end
end
end
end