Update board attributes in a single statement

parent 4906afca
module Boards
class UpdateService < BaseService
def execute(board)
board.update(name: params[:name])
board.update(milestone_id: params[:milestone_id])
board.update(name: params[:name], milestone_id: params[:milestone_id])
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