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
1182f9e4
Commit
1182f9e4
authored
Nov 14, 2018
by
Jiri Strojil
Browse files
Removed unused parts
parent
dd9ce16b
Pipeline
#30761
failed with stage
in 58 minutes and 5 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/models/hour.rb
View file @
1182f9e4
...
...
@@ -47,10 +47,6 @@ class Hour < ApplicationRecord
attr_reader
:spv_mission_id
def
spv_mission_id
=
id
self
.
hourable
=
SemesterProcessVolunteerMission
.
find
(
id
).
mission
end
def
assignment?
hourable_type
==
'Assignment'
end
...
...
app/models/semester_process_volunteer_mission.rb
View file @
1182f9e4
...
...
@@ -3,10 +3,4 @@ class SemesterProcessVolunteerMission < ApplicationRecord
delegate
:volunteer
,
to: :semester_process_volunteer
belongs_to
:semester_process_volunteer
attr_accessor
:hour
def
hour
@hour
||
Hour
.
new
end
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