Files
fizzy/app/controllers/terminals_controller.rb
T
Jorge Manrubia 54f4bd5144 Generalize event's cards as eventable,add collection
Lots to tidy up but this is working
2025-04-24 12:28:16 +02:00

10 lines
308 B
Ruby

class TerminalsController < ApplicationController
def show
@events = Event.where(eventable: Current.user.accessible_cards, creator: Current.user).chronologically.reverse_order.limit(20)
end
def edit
@filter = Current.user.filters.from_params params.permit(*Filter::PERMITTED_PARAMS)
end
end