14 lines
507 B
Ruby
14 lines
507 B
Ruby
class Public::CollectionsController < ApplicationController
|
|
include PublicCollectionScoped
|
|
|
|
allow_unauthenticated_access only: :show
|
|
|
|
layout "public"
|
|
|
|
def show
|
|
@considering = current_page_from @collection.cards.considering.latest, per_page: CardsController::PAGE_SIZE
|
|
@doing = current_page_from @collection.cards.doing.latest, per_page: CardsController::PAGE_SIZE
|
|
@closed = current_page_from @collection.cards.closed.recently_closed_first, per_page: CardsController::PAGE_SIZE
|
|
end
|
|
end
|