Skip to content

Commit

Permalink
Remove unused update_card_positions method from board_columns_controller
Browse files Browse the repository at this point in the history
  • Loading branch information
piowit committed Jul 17, 2024
1 parent b774190 commit ede08bf
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/controllers/board_columns_controller.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
class BoardColumnsController < ApplicationController
def update_card_positions
column = BoardColumn.find(params[:column_id])
card = Card.find(params[:id])
card.update(board_column: column)
card.insert_at(params[:position].to_i + 1)
head :ok
end

def new
@board = Board.find(params[:board_id])
@board_column = @board.board_columns.new
Expand Down

0 comments on commit ede08bf

Please sign in to comment.