Files
fizzy/app/controllers/public/collections/columns_controller.rb
T
David Heinemeier Hansson 0a9e1620a0 No longer needed
2025-11-03 13:46:22 +01:00

20 lines
461 B
Ruby

class Public::Collections::ColumnsController < ApplicationController
include CachedPublicly, PublicCollectionScoped
allow_unauthenticated_access only: :show
allow_unauthorized_access only: :show
layout "public"
before_action :set_column, only: :show
def show
set_page_and_extract_portion_from @column.cards.active.latest.with_golden_first
end
private
def set_column
@column = @collection.columns.find(params[:id])
end
end