Sha256: 8323853099c8d8983adc09251e3774bc365e2ff2738a84947d3b68e2bcf8951a

Contents?: true

Size: 365 Bytes

Versions: 16

Compression:

Stored size: 365 Bytes

Contents

class LessonsController < GuideContainerController
  include Mumuki::Laboratory::Controllers::ImmersiveNavigation
  include Mumuki::Laboratory::Controllers::ValidateAccessMode

  private

  def subject
    @lesson ||= Lesson.find_by(id: params[:id])
  end

  def authorization_minimum_role
    :ex_student
  end

  def subject_container
    subject.guide
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mumuki-laboratory-9.23.0 app/controllers/lessons_controller.rb
mumuki-laboratory-9.22.0 app/controllers/lessons_controller.rb
mumuki-laboratory-9.21.0 app/controllers/lessons_controller.rb
mumuki-laboratory-9.20.1 app/controllers/lessons_controller.rb
mumuki-laboratory-9.20.0 app/controllers/lessons_controller.rb
mumuki-laboratory-9.19.0 app/controllers/lessons_controller.rb
mumuki-laboratory-9.18.1 app/controllers/lessons_controller.rb
mumuki-laboratory-9.18.0 app/controllers/lessons_controller.rb
mumuki-laboratory-9.17.0 app/controllers/lessons_controller.rb
mumuki-laboratory-9.16.0 app/controllers/lessons_controller.rb
mumuki-laboratory-9.15.0 app/controllers/lessons_controller.rb
mumuki-laboratory-9.14.1 app/controllers/lessons_controller.rb
mumuki-laboratory-9.14.0 app/controllers/lessons_controller.rb
mumuki-laboratory-9.13.2 app/controllers/lessons_controller.rb
mumuki-laboratory-9.13.1 app/controllers/lessons_controller.rb
mumuki-laboratory-9.13.0 app/controllers/lessons_controller.rb