Rename
This commit is contained in:
@@ -3,7 +3,7 @@ class Cards::TriagesController < ApplicationController
|
||||
|
||||
def create
|
||||
column = @card.collection.columns.find(params[:column_id])
|
||||
@card.triage_to(column)
|
||||
@card.triage_into(column)
|
||||
|
||||
render_card_replacement
|
||||
end
|
||||
|
||||
@@ -16,7 +16,7 @@ module Card::Triageable
|
||||
active? && !triaged?
|
||||
end
|
||||
|
||||
def triage_to(column)
|
||||
def triage_into(column)
|
||||
raise "The column must belong to the card collection" unless collection == column.collection
|
||||
update! column: column
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user