Module: DuplicationStateTrackingConcern

Extended by:
ActiveSupport::Concern
Included in:
AttachmentReference, Course::Assessment, Course::Assessment::Question::Programming, Course::Condition::Achievement, Course::Condition::Assessment, Course::Material, Course::Material::Folder
Defined in:
app/models/concerns/duplication_state_tracking_concern.rb

Overview

This concern provides methods to track the duplication states.

Instance Method Summary collapse

Instance Method Details

#clear_duplication_flagObject


21
22
23
# File 'app/models/concerns/duplication_state_tracking_concern.rb', line 21

def clear_duplication_flag
  @duplicating = nil
end

#duplicating?Boolean


17
18
19
# File 'app/models/concerns/duplication_state_tracking_concern.rb', line 17

def duplicating?
  !!@duplicating
end

#set_duplication_flagObject


13
14
15
# File 'app/models/concerns/duplication_state_tracking_concern.rb', line 13

def set_duplication_flag
  @duplicating = true
end