Skip to content

Instantly share code, notes, and snippets.

@cowboycoded
Created April 12, 2011 02:35
Show Gist options
  • Save cowboycoded/914814 to your computer and use it in GitHub Desktop.
Save cowboycoded/914814 to your computer and use it in GitHub Desktop.
class WidgetsController < ApplicationController
caches_action :show, :if => Proc.new { |x| x.cacheable? }
def show
#...
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment