Class: Course::LessonPlan::Event

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

Instance Method Summary collapse

Instance Method Details

#initialize_duplicate(duplicator, other) ⇒ Object


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

def initialize_duplicate(duplicator, other)
  copy_attributes(other, duplicator)
  self.course = duplicator.options[:destination_course]
end