Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
aoz-003
Commits
c613b505
Verified
Commit
c613b505
authored
Jul 04, 2018
by
Kaspar Vollenweider
👻
Browse files
do not send a useless json respond back, as it is not used on the client side anyway
parent
1b4cd803
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/controllers/volunteers_controller.rb
View file @
c613b505
...
...
@@ -82,7 +82,7 @@ class VolunteersController < ApplicationController
def
update_waive_and_iban
authorize
@volunteer
@volunteer
.
update
(
volunteer_params
)
re
spond_to
:json
re
nder
json:
nil
,
status: :ok
end
def
terminate
...
...
app/views/volunteers/update_waive_and_iban.json.jbuilder
deleted
100644 → 0
View file @
1b4cd803
json.volunteer do
json.id @volunteer.id
json.waive @volunteer.waive
json.iban @volunteer.iban
json.bank @volunteer.bank
json.errors @volunteer.errors&.messages
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment