LearnPulse / app /controllers /posts_controller.rb
Nambinintsoa Rovatiana RAMAROSON
first commit
874ae95
Raw
History Blame Contribute Delete
178 Bytes
class PostsController < ApplicationController
before_action :authenticate_user!
layout 'student'
def versions
@post = authorize(Post.live.find(params[:id]))
end
end