Update board attributes in a single statement

parent 4906afca
module Boards module Boards
class UpdateService < BaseService class UpdateService < BaseService
def execute(board) def execute(board)
board.update(name: params[:name]) board.update(name: params[:name], milestone_id: params[:milestone_id])
board.update(milestone_id: params[:milestone_id])
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment