19051aec3e
This implements a simple strategy to optimistically insert cards in columns without waiting for the column refresh. Cards will be placed at the top respecting golden cards. This uses sorting by "created at" with sorting by "updated at" for the _Not now_ column, so that the treatment everywhere is homogenous.
9 lines
222 B
Ruby
9 lines
222 B
Ruby
class Boards::Columns::NotNowsController < ApplicationController
|
|
include BoardScoped
|
|
|
|
def show
|
|
set_page_and_extract_portion_from @board.cards.postponed.latest.preloaded
|
|
fresh_when etag: @page.records
|
|
end
|
|
end
|