root/lang/ruby/pritter/vendor/rails/actionpack/lib/action_view/helpers/cache_helper.rb @ 5644

Revision 5644, 244 bytes (checked in by nakamud, 6 years ago)

lang/ruby/pritter: freezed gems to ease installation

Line 
1module ActionView
2  module Helpers
3    # See ActionController::Caching::Fragments for usage instructions.
4    module CacheHelper
5      def cache(name = {}, &block)
6        @controller.cache_erb_fragment(block, name)
7      end
8    end
9  end
10end
Note: See TracBrowser for help on using the browser.