Spaces:
Paused
Paused
| class PostsController < ApplicationController | |
| before_action :authenticate_user! | |
| layout 'student' | |
| def versions | |
| @post = authorize(Post.live.find(params[:id])) | |
| end | |
| end | |
| class PostsController < ApplicationController | |
| before_action :authenticate_user! | |
| layout 'student' | |
| def versions | |
| @post = authorize(Post.live.find(params[:id])) | |
| end | |
| end | |