Module: ProjectRemoteIssuesController::Update

Included in:
ProjectRemoteIssuesController
Defined in:
app/controllers/project_remote_issues_controller/update.rb

Instance Method Summary collapse

Instance Method Details

#updateObject



5
6
7
8
9
10
11
12
# File 'app/controllers/project_remote_issues_controller/update.rb', line 5

def update
  update = update_model_class.new(update_params)
  if update.save
    update_redirect(update, "Demanda atualizada: \##{update.remote_issue.local_issue.id}")
  else
    update_redirect(update, "Falha ao tentar atualizar demanda: #{update.errors.messages}")
  end
end