Files
fizzy/app/controllers/columns/cards/drops/closures_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

10 lines
290 B
Ruby

class Columns::Cards::Drops::ClosuresController < ApplicationController
include CardScoped
def create
@card.close
render turbo_stream: turbo_stream.replace("closed-cards", partial: "collections/show/closed", method: :morph, locals: { collection: @card.collection })
end
end