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
a7d3e195
Verified
Commit
a7d3e195
authored
Oct 12, 2018
by
Kaspar Vollenweider
👻
Browse files
feat(semester-process): make SemesterProcessVolunteer a nested attribute
- so that it can be treated as a child of this in forms -
parent
b5456f7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/semester_process.rb
View file @
a7d3e195
...
...
@@ -6,6 +6,8 @@ class SemesterProcess < ApplicationRecord
inverse_of:
'semester_process_reminder_mail_posted'
,
optional:
true
has_many
:semester_process_volunteers
,
dependent: :destroy
accepts_nested_attributes_for
:semester_process_volunteers
,
allow_destroy:
true
has_many
:volunteers
,
through: :semester_process_volunteers
has_many
:semester_feedbacks
,
through: :semester_process_volunteers
has_many
:hours
,
through: :semester_process_volunteers
...
...
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