Files
fizzy/app/controllers/public/collections_controller.rb
T
2025-10-13 15:39:14 -05:00

15 lines
395 B
Ruby

class Public::CollectionsController < ApplicationController
include PublicCollectionScoped
allow_unauthenticated_access only: :show
layout "public"
def show
set_page_and_extract_portion_from @collection.cards.awaiting_triage.by_last_activity.with_golden_first
# To enable caching at intermediate proxies during traffic spikes
expires_in 5.seconds, public: true
end
end