Sha256: 9347ae00413fb502e79dc50eac9eff8a6798d408abfdd137b143ab4c0c7799b4

Contents?: true

Size: 380 Bytes

Versions: 3

Compression:

Stored size: 380 Bytes

Contents

class PhotoGalleriesController < ApplicationController

  respond_to :html, :json, :xml
  layout Spud::Photos.base_layout

  after_filter :only => [:index] do |c|
    if Spud::Photos.enable_full_page_caching
      c.cache_page(nil, nil, false)
    end
  end

  def index
    @photo_galleries = SpudPhotoGallery.order('created_at desc')
    respond_with @photo_galleries
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spud_photos-0.9.0.2 app/controllers/photo_galleries_controller.rb
spud_photos-0.9.0.1 app/controllers/photo_galleries_controller.rb
spud_photos-0.9.0 app/controllers/photo_galleries_controller.rb