File size: 178 Bytes
874ae95
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
class PostsController < ApplicationController
  before_action :authenticate_user!
  layout 'student'

  def versions
    @post = authorize(Post.live.find(params[:id]))
  end
end