LearnPulse / app /controllers /topics_controller.rb
Nambinintsoa Rovatiana RAMAROSON
first commit
874ae95
Raw
History Blame Contribute Delete
245 Bytes
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