Class Index [+]

Quicksearch

ActionView::Helpers::CacheHelper

Public Instance Methods

fragment_for(*args, &block) click to toggle source
Also aliased as: fragment_for_without_haml
fragment_for_with_haml(*args, &block) click to toggle source

This is a workaround for a Rails 3 bug that’s present at least through beta 3. Their fragment_for assumes that the block will return its contents as a string, which is not always the case. Luckily, it only makes this assumption if caching is disabled, so we only override that case.

     # File lib/haml/helpers/action_view_mods.rb, line 185
185:         def fragment_for_with_haml(*args, &block)
186:           return fragment_for_without_haml(*args, &block) if controller.perform_caching
187:           capture(&block)
188:         end
Also aliased as: fragment_for
fragment_for_without_haml(*args, &block) click to toggle source
Alias for: fragment_for

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.