Sha256: 1b57fc9fd60d4d8a4b81740c5fdb6d56e1aaab0b85bd310d6e9eda995dcef741
Contents?: true
Size: 337 Bytes
Versions: 16
Compression:
Stored size: 337 Bytes
Contents
class Spud::Blog::SitemapsController < Spud::ApplicationController respond_to :xml caches_action :show, :expires_in => 1.day, :if => Proc.new{ |c| Spud::Blog.cache_mode == :action } caches_page :show, :if => Proc.new{ |c| Spud::Blog.cache_mode == :full_page } def show @posts = SpudPost.publicly.all respond_with @pages end end
Version data entries
16 entries across 16 versions & 2 rubygems