Sha256: adeed02363990c1067af08cd7bf22b1ea11e30805aef1bed1368bda1dc937456

Contents?: true

Size: 462 Bytes

Versions: 9

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

module Kitchen
  module Directions
    # Ids should be added before exercises are moved to EOC,
    # since they're using part of the ancestor page id.
    #
    # In some books exercises are numbered after moving.
    # That's why this step has to be separated from BakeInjectedExerciseQuestion
    module AddInjectedExerciseId
      def self.v1(book:)
        book.pages.injected_questions.each(&:id)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
openstax_kitchen-19.0.0 lib/kitchen/directions/bake_injected_exercise/add_injected_exercise_id.rb
openstax_kitchen-18.0.0 lib/kitchen/directions/bake_injected_exercise/add_injected_exercise_id.rb
openstax_kitchen-17.1.0 lib/kitchen/directions/bake_injected_exercise/add_injected_exercise_id.rb
openstax_kitchen-17.0.0 lib/kitchen/directions/bake_injected_exercise/add_injected_exercise_id.rb
openstax_kitchen-16.0.0 lib/kitchen/directions/bake_injected_exercise/add_injected_exercise_id.rb
openstax_kitchen-15.0.0 lib/kitchen/directions/bake_injected_exercise/add_injected_exercise_id.rb
openstax_kitchen-14.0.0 lib/kitchen/directions/bake_injected_exercise/add_injected_exercise_id.rb
openstax_kitchen-13.0.0 lib/kitchen/directions/bake_injected_exercise/add_injected_exercise_id.rb
openstax_kitchen-12.2.0 lib/kitchen/directions/bake_injected_exercise/add_injected_exercise_id.rb