5c52b6b056
- Reload source frame with morphing. E.g: to deal with pagination or with the D&D placeholder - Decrease source counter with JS
10 lines
290 B
Ruby
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
|