Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion app/controllers/tracks/concepts_controller.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
class Tracks::ConceptsController < ApplicationController
skip_before_action :authenticate_user!, only: %i[index show tooltip]
skip_before_action :rate_limit_for_user!, only: %i[tooltip] # Scanning over this is a lot

before_action :cache_public_action!, only: %i[index show tooltip]

before_action :use_track
before_action :use_concepts, only: :index
before_action :use_concept, only: %i[show tooltip start complete]

before_action :guard_practice_mode!, only: [:index]
before_action :guard_course!, only: [:index]
skip_before_action :authenticate_user!, only: %i[index show tooltip]

def index
@concept_map_data = Track::DetermineConceptMapLayout.(@user_track)
Expand Down
8 changes: 4 additions & 4 deletions app/controllers/tracks/exercises_controller.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
class Tracks::ExercisesController < ApplicationController
skip_before_action :authenticate_user!, only: %i[index show tooltip]
skip_before_action :rate_limit_for_user!, only: %i[tooltip] # Scanning over this is a lot
skip_before_action :verify_authenticity_token, only: :start

include UseTrackExerciseSolutionConcern
before_action :use_track!
before_action :use_exercise!, only: %i[show start edit complete tooltip no_test_runner]
before_action :use_solution, only: %i[show edit complete tooltip]
before_action :cache_public_action!, only: %i[index show tooltip]

skip_before_action :authenticate_user!, only: %i[index show tooltip]
skip_before_action :rate_limit_for_user!, only: %i[tooltip] # Scanning over this is a lot
skip_before_action :verify_authenticity_token, only: :start

def index
@num_completed = @user_track.num_completed_exercises

Expand Down
Loading