Spaces:
Paused
Paused
File size: 245 Bytes
874ae95 | 1 2 3 4 5 6 7 8 9 10 | class TopicsController < ApplicationController
before_action :authenticate_user!
layout 'student'
def show
@topic = authorize(Topic.live.find(params[:id]))
Topics::IncrementViewsService.new(@topic).execute(current_user)
end
end
|