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
40f273ea
Commit
40f273ea
authored
Feb 01, 2018
by
Tugce Nur Tas
Browse files
remove empty lines
parent
33224840
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/controllers/assignments_controller.rb
View file @
40f273ea
...
...
@@ -101,10 +101,8 @@ class AssignmentsController < ApplicationController
@assignment
.
volunteer
.
waive
=
assignment_params
[
:volunteer_attributes
][
:waive
]
==
'1'
@assignment
.
assign_attributes
(
termination_submitted_at:
Time
.
zone
.
now
,
termination_submitted_by:
current_user
)
if
@assignment
.
save
&&
terminate_reminder_mailing
NotificationMailer
.
termination_submitted
(
@assignment
).
deliver_now
redirect_to
@assignment
.
volunteer
,
notice:
'Der Einsatz ist hiermit abgeschlossen.'
else
redirect_back
(
fallback_location:
terminate_assignment_path
(
@assignment
))
...
...
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