class ComplementsController < GuideContainerController

  private

  def subject
    @complement ||= Complement.find_by(id: params[:id])
  end
end

class ComplementsController < GuideContainerController
  include Mumuki::Laboratory::Controllers::ValidateAccessMode

  private

  def subject
    @complement ||= Complement.find_by(id: params[:id])
  end

  def authorization_minimum_role
    :ex_student
  end

  def subject_container
    subject.guide
  end
end

Allow complements to work like lessons
Allow complements to work like lessons
