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
b7dc0535
Commit
b7dc0535
authored
Nov 14, 2018
by
Jiri Strojil
Browse files
Moved method to before_action
parent
4355d89b
Pipeline
#30806
passed with stage
in 42 minutes and 40 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/controllers/semester_process_volunteers_controller.rb
View file @
b7dc0535
class
SemesterProcessVolunteersController
<
ApplicationController
before_action
:prepare_review
,
only:
[
:review_semester
,
:submit_review
]
before_action
:prepare_review
,
:initialize_nested_objects
,
only:
[
:review_semester
,
:submit_review
]
before_action
:set_semester_process_volunteer
,
only:
[
:show
,
:edit
,
:update
]
before_action
:set_semester
,
only:
[
:index
]
include
SemesterProcessVolunteerHelper
def
review_semester
initialize_nested_objects
end
def
review_semester
;
end
def
submit_review
# you shall not pass
return
if
@semester_process_volunteer
.
commited_at
initialize_nested_objects
set_reviewed
assign_volunteer_attributes
build_nested_objects
...
...
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