Skip to content

Instantly share code, notes, and snippets.

@njakobsen
Created August 5, 2009 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save njakobsen/162963 to your computer and use it in GitHub Desktop.
Save njakobsen/162963 to your computer and use it in GitHub Desktop.
class EntityViewSweeperWorker < Workling::Base
# Expires the view fragments for a particular entity based on options[:type] and options[:id]
def expire_fragment_for_all(options)
expire_fragment(/#{options[:type].tableize}\/#{options[:id]}\/views\//)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment