Class: Course::LessonPlan::Milestone

Inherits:
ApplicationRecord show all
Defined in:
app/models/course/lesson_plan/milestone.rb

Instance Method Summary collapse

Instance Method Details

#initialize_duplicate(duplicator, _other) ⇒ Object


5
6
7
8
# File 'app/models/course/lesson_plan/milestone.rb', line 5

def initialize_duplicate(duplicator, _other)
  self.start_at = duplicator.time_shift(start_at)
  self.course = duplicator.options[:destination_course]
end