Skip to content

Commit

Permalink
Use the CRUD defaults for PatchinfoController#update
Browse files Browse the repository at this point in the history
  • Loading branch information
vpereira committed Oct 1, 2019
1 parent 20c36b6 commit 39cebb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/app/views/webui/patchinfo/edit.html.haml
Expand Up @@ -5,7 +5,7 @@
.card-body
%h3= @pagetitle

= form_for(@patchinfo, url: update_patchinfo_path(project: @project, package: @package), method: :put, html: { id: 'patchinfo' }) do |form|
= form_for(@patchinfo, url: patchinfo_path(project: @project, package: @package), method: :put, html: { id: 'patchinfo' }) do |form|
= form.hidden_field(:name)
.form-group.col-md-8.col-lg-4
= render partial: 'webui/shared/autocomplete', locals: { html_id: 'patchinfo[packager]', label: 'Packager', value: @patchinfo.packager,
Expand Down
3 changes: 1 addition & 2 deletions src/api/config/routes/webui_routes.rb
Expand Up @@ -115,10 +115,9 @@
end
end

resource :patchinfo, except: [:show, :update], controller: 'webui/patchinfo' do
resource :patchinfo, except: [:show], controller: 'webui/patchinfo' do
get 'new_tracker' => :new_tracker
post 'update_issues/:project/:package' => :update_issues, as: :update_issues
put ':project/:package' => :update, constraints: cons, as: :update
get 'show/:project/:package' => :show, as: :show, constraints: cons
end

Expand Down

0 comments on commit 39cebb2

Please sign in to comment.