Files
fizzy/app/controllers/public/collections/columns_controller.rb
T
Stanko Krtalić 98755844a1 Remove the internal API
* Bind sessions to identities
* Remove references to the identity token
* Move email changes to identity
* Move account menu into a turbo-frame
* Create tenants from a tenanted route
2025-10-31 16:26:08 +01:00

20 lines
491 B
Ruby

class Public::Collections::ColumnsController < ApplicationController
include ActionView::RecordIdentifier, 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