Files
fizzy/app/controllers/columns/cards/drops/streams_controller.rb
T
Jorge Manrubia 5c52b6b056 More fidelity for D&D cards
- Reload source frame with morphing. E.g: to deal with pagination or with the D&D placeholder
- Decrease source counter with JS
2025-09-26 15:30:09 +02:00

11 lines
410 B
Ruby

class Columns::Cards::Drops::StreamsController < ApplicationController
include CardScoped
def create
@card.send_back_to_triage
set_page_and_extract_portion_from @collection.cards.awaiting_triage.reverse_chronologically
render turbo_stream: turbo_stream.replace("the-stream", partial: "collections/show/stream", method: :morph, locals: { collection: @card.collection, page: @page })
end
end