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
66b5a19a
Commit
66b5a19a
authored
Jan 26, 2018
by
Tugce Nur Tas
Browse files
adjust group_assignment update method to set period_end_set_by and add verify_termination method
parent
6adcbac7
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/controllers/group_assignments_controller.rb
View file @
66b5a19a
...
...
@@ -108,6 +108,15 @@ class GroupAssignmentsController < ApplicationController
authorize
@group_assignment
end
def
create_update_redirect
if
@group_assignment
.
saved_change_to_period_end?
(
from:
nil
)
redirect_to
terminated_index_group_assignments_path
(
q:
{
termination_verified_by_id_null:
'true'
}),
notice:
'Die Einsatzbeendung wurde initiiert.'
else
redirect_to
@group_assignment
.
group_offer
,
make_notice
end
end
def
group_assignment_params
params
.
require
(
:group_assignment
).
permit
(
:period_start
,
:period_end
,
:termination_submitted_at
,
:terminated_at
,
:responsible
,
...
...
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