Commit 1182f9e4 authored by Jiri Strojil's avatar Jiri Strojil
Browse files

Removed unused parts

parent dd9ce16b
Pipeline #30761 failed with stage
in 58 minutes and 5 seconds
......@@ -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
......
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment