Skip to content

Instantly share code, notes, and snippets.

@diasjorge
Created November 12, 2009 09:55
Show Gist options
  • Save diasjorge/232775 to your computer and use it in GitHub Desktop.
Save diasjorge/232775 to your computer and use it in GitHub Desktop.
locales = Lang.all(:select => "code")
applications = %w(jobs housing classifieds community account)
locations = Location.all(:select => "id")
c = ActionController::Base.new
locales.each do |locale|
applications.each do |app|
locations.each do |location|
c.expire_fragment "#{locale.code}/#{app}/#{location.id}/application_tabs"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment