Skip to content

Instantly share code, notes, and snippets.

@RichGuk
Created July 27, 2009 16:21
Show Gist options
  • Save RichGuk/156587 to your computer and use it in GitHub Desktop.
Save RichGuk/156587 to your computer and use it in GitHub Desktop.
def fragment_cache(key, params = {}, &block)
cache(key, params) { capture_haml(&block) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment