Sha256: 162f9d605421a2f080978042fd2ec379f12b3b55ab40b1e3864e021104110dcb
Contents?: true
Size: 494 Bytes
Versions: 4
Compression:
Stored size: 494 Bytes
Contents
class Admin::PagesController < Admin::BaseController resource_controller update.response do |wants| wants.html { redirect_to collection_url } end update.after do expire_page :controller => 'static_content', :action => 'show', :path => @page.slug Rails.cache.delete('page_not_exist/'+@page.slug) end create.response do |wants| wants.html { redirect_to collection_url } end create.after do Rails.cache.delete('page_not_exist/'+@page.slug) end end
Version data entries
4 entries across 4 versions & 1 rubygems